mu_micro_book_srv_payment

package
v0.0.0-...-908d554 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPaymentHandler

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

Types

type Error

type Error struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Detail               string   `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Error) Descriptor

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

func (*Error) GetCode

func (m *Error) GetCode() int32

func (*Error) GetDetail

func (m *Error) GetDetail() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type PayEvent

type PayEvent struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SentTime             int64    `protobuf:"varint,2,opt,name=sentTime,proto3" json:"sentTime,omitempty"`
	OrderId              int64    `protobuf:"varint,3,opt,name=orderId,proto3" json:"orderId,omitempty"`
	State                int32    `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PayEvent

func (*PayEvent) Descriptor

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

func (*PayEvent) GetId

func (m *PayEvent) GetId() string

func (*PayEvent) GetOrderId

func (m *PayEvent) GetOrderId() int64

func (*PayEvent) GetSentTime

func (m *PayEvent) GetSentTime() int64

func (*PayEvent) GetState

func (m *PayEvent) GetState() int32

func (*PayEvent) ProtoMessage

func (*PayEvent) ProtoMessage()

func (*PayEvent) Reset

func (m *PayEvent) Reset()

func (*PayEvent) String

func (m *PayEvent) String() string

func (*PayEvent) XXX_DiscardUnknown

func (m *PayEvent) XXX_DiscardUnknown()

func (*PayEvent) XXX_Marshal

func (m *PayEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PayEvent) XXX_Merge

func (m *PayEvent) XXX_Merge(src proto.Message)

func (*PayEvent) XXX_Size

func (m *PayEvent) XXX_Size() int

func (*PayEvent) XXX_Unmarshal

func (m *PayEvent) XXX_Unmarshal(b []byte) error

type PaymentHandler

type PaymentHandler interface {
	PayOrder(context.Context, *Request, *Response) error
}

type PaymentService

type PaymentService interface {
	PayOrder(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}

func NewPaymentService

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

type Payments

type Payments struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId               int64    `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	BookId               int64    `protobuf:"varint,3,opt,name=bookId,proto3" json:"bookId,omitempty"`
	OrderId              int64    `protobuf:"varint,4,opt,name=orderId,proto3" json:"orderId,omitempty"`
	InvHistoryId         int64    `protobuf:"varint,5,opt,name=invHistoryId,proto3" json:"invHistoryId,omitempty"`
	State                int32    `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"`
	CreatedTime          int64    `protobuf:"varint,7,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
	UpdatedTime          int64    `protobuf:"varint,8,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Payments) Descriptor

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

func (*Payments) GetBookId

func (m *Payments) GetBookId() int64

func (*Payments) GetCreatedTime

func (m *Payments) GetCreatedTime() int64

func (*Payments) GetId

func (m *Payments) GetId() int64

func (*Payments) GetInvHistoryId

func (m *Payments) GetInvHistoryId() int64

func (*Payments) GetOrderId

func (m *Payments) GetOrderId() int64

func (*Payments) GetState

func (m *Payments) GetState() int32

func (*Payments) GetUpdatedTime

func (m *Payments) GetUpdatedTime() int64

func (*Payments) GetUserId

func (m *Payments) GetUserId() int64

func (*Payments) ProtoMessage

func (*Payments) ProtoMessage()

func (*Payments) Reset

func (m *Payments) Reset()

func (*Payments) String

func (m *Payments) String() string

func (*Payments) XXX_DiscardUnknown

func (m *Payments) XXX_DiscardUnknown()

func (*Payments) XXX_Marshal

func (m *Payments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payments) XXX_Merge

func (m *Payments) XXX_Merge(src proto.Message)

func (*Payments) XXX_Size

func (m *Payments) XXX_Size() int

func (*Payments) XXX_Unmarshal

func (m *Payments) XXX_Unmarshal(b []byte) error

type Request

type Request struct {
	OrderId              int64    `protobuf:"varint,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	Price                int64    `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetOrderId

func (m *Request) GetOrderId() int64

func (*Request) GetPrice

func (m *Request) GetPrice() int64

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Response

type Response struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error                *Error   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetError

func (m *Response) GetError() *Error

func (*Response) GetSuccess

func (m *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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