payment

package
v0.0.0-...-a16dd36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_payment_payment_proto protoreflect.FileDescriptor

Functions

func NewPaymentEndpoints

func NewPaymentEndpoints() []*api.Endpoint

func RegisterPaymentHandler

func RegisterPaymentHandler(s server.Server, hdlr PaymentHandler, opts ...server.HandlerOption) error

Types

type All

type All struct {
	// contains filtered or unexported fields
}

func (*All) Descriptor deprecated

func (*All) Descriptor() ([]byte, []int)

Deprecated: Use All.ProtoReflect.Descriptor instead.

func (*All) ProtoMessage

func (*All) ProtoMessage()

func (*All) ProtoReflect

func (x *All) ProtoReflect() protoreflect.Message

func (*All) Reset

func (x *All) Reset()

func (*All) String

func (x *All) String() string

type PaymentAll

type PaymentAll struct {
	PaymentInfo []*PaymentInfo `protobuf:"bytes,1,rep,name=payment_info,json=paymentInfo,proto3" json:"payment_info,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentAll) Descriptor deprecated

func (*PaymentAll) Descriptor() ([]byte, []int)

Deprecated: Use PaymentAll.ProtoReflect.Descriptor instead.

func (*PaymentAll) GetPaymentInfo

func (x *PaymentAll) GetPaymentInfo() []*PaymentInfo

func (*PaymentAll) ProtoMessage

func (*PaymentAll) ProtoMessage()

func (*PaymentAll) ProtoReflect

func (x *PaymentAll) ProtoReflect() protoreflect.Message

func (*PaymentAll) Reset

func (x *PaymentAll) Reset()

func (*PaymentAll) String

func (x *PaymentAll) String() string

type PaymentHandler

type PaymentHandler interface {
	AddPayment(context.Context, *PaymentInfo, *PaymentID) error
	UpdatePayment(context.Context, *PaymentInfo, *Response) error
	DeletePaymentByID(context.Context, *PaymentID, *Response) error
	FindPaymentByID(context.Context, *PaymentID, *PaymentInfo) error
	FindAllPayment(context.Context, *All, *PaymentAll) error
}

type PaymentID

type PaymentID struct {
	PaymentId int64 `protobuf:"varint,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentID) Descriptor deprecated

func (*PaymentID) Descriptor() ([]byte, []int)

Deprecated: Use PaymentID.ProtoReflect.Descriptor instead.

func (*PaymentID) GetPaymentId

func (x *PaymentID) GetPaymentId() int64

func (*PaymentID) ProtoMessage

func (*PaymentID) ProtoMessage()

func (*PaymentID) ProtoReflect

func (x *PaymentID) ProtoReflect() protoreflect.Message

func (*PaymentID) Reset

func (x *PaymentID) Reset()

func (*PaymentID) String

func (x *PaymentID) String() string

type PaymentInfo

type PaymentInfo struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PaymentName   string `protobuf:"bytes,2,opt,name=payment_name,json=paymentName,proto3" json:"payment_name,omitempty"`
	PaymentSid    string `protobuf:"bytes,3,opt,name=payment_sid,json=paymentSid,proto3" json:"payment_sid,omitempty"`
	PaymentStatus bool   `protobuf:"varint,4,opt,name=payment_status,json=paymentStatus,proto3" json:"payment_status,omitempty"`
	PaymentImage  string `protobuf:"bytes,5,opt,name=Payment_image,json=PaymentImage,proto3" json:"Payment_image,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentInfo) Descriptor deprecated

func (*PaymentInfo) Descriptor() ([]byte, []int)

Deprecated: Use PaymentInfo.ProtoReflect.Descriptor instead.

func (*PaymentInfo) GetId

func (x *PaymentInfo) GetId() int64

func (*PaymentInfo) GetPaymentImage

func (x *PaymentInfo) GetPaymentImage() string

func (*PaymentInfo) GetPaymentName

func (x *PaymentInfo) GetPaymentName() string

func (*PaymentInfo) GetPaymentSid

func (x *PaymentInfo) GetPaymentSid() string

func (*PaymentInfo) GetPaymentStatus

func (x *PaymentInfo) GetPaymentStatus() bool

func (*PaymentInfo) ProtoMessage

func (*PaymentInfo) ProtoMessage()

func (*PaymentInfo) ProtoReflect

func (x *PaymentInfo) ProtoReflect() protoreflect.Message

func (*PaymentInfo) Reset

func (x *PaymentInfo) Reset()

func (*PaymentInfo) String

func (x *PaymentInfo) String() string

type PaymentService

type PaymentService interface {
	AddPayment(ctx context.Context, in *PaymentInfo, opts ...client.CallOption) (*PaymentID, error)
	UpdatePayment(ctx context.Context, in *PaymentInfo, opts ...client.CallOption) (*Response, error)
	DeletePaymentByID(ctx context.Context, in *PaymentID, opts ...client.CallOption) (*Response, error)
	FindPaymentByID(ctx context.Context, in *PaymentID, opts ...client.CallOption) (*PaymentInfo, error)
	FindAllPayment(ctx context.Context, in *All, opts ...client.CallOption) (*PaymentAll, error)
}

func NewPaymentService

func NewPaymentService(name string, c client.Client) PaymentService

type Response

type Response struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL