Documentation ¶
Index ¶
- Variables
- type CancelOrderReq
- func (p *CancelOrderReq) BLength() int
- func (p *CancelOrderReq) DeepEqual(ano *CancelOrderReq) bool
- func (p *CancelOrderReq) FastRead(buf []byte) (int, error)
- func (p *CancelOrderReq) FastReadField1(buf []byte) (int, error)
- func (p *CancelOrderReq) FastWrite(buf []byte) int
- func (p *CancelOrderReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CancelOrderReq) Field1DeepEqual(src int64) bool
- func (p *CancelOrderReq) GetOrderId() (v int64)
- func (p *CancelOrderReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CancelOrderReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CancelOrderReq) SetOrderId(val int64)
- func (p *CancelOrderReq) String() string
- func (p *CancelOrderReq) Write(oprot thrift.TProtocol) (err error)
- type CancelOrderResp
- func (p *CancelOrderResp) BLength() int
- func (p *CancelOrderResp) DeepEqual(ano *CancelOrderResp) bool
- func (p *CancelOrderResp) FastRead(buf []byte) (int, error)
- func (p *CancelOrderResp) FastReadField255(buf []byte) (int, error)
- func (p *CancelOrderResp) FastWrite(buf []byte) int
- func (p *CancelOrderResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CancelOrderResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *CancelOrderResp) GetBaseResp() (v *base.BaseResp)
- func (p *CancelOrderResp) IsSetBaseResp() bool
- func (p *CancelOrderResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CancelOrderResp) ReadField255(iprot thrift.TProtocol) error
- func (p *CancelOrderResp) SetBaseResp(val *base.BaseResp)
- func (p *CancelOrderResp) String() string
- func (p *CancelOrderResp) Write(oprot thrift.TProtocol) (err error)
- type CreateOrderReq
- func (p *CreateOrderReq) BLength() int
- func (p *CreateOrderReq) DeepEqual(ano *CreateOrderReq) bool
- func (p *CreateOrderReq) FastRead(buf []byte) (int, error)
- func (p *CreateOrderReq) FastReadField1(buf []byte) (int, error)
- func (p *CreateOrderReq) FastReadField2(buf []byte) (int, error)
- func (p *CreateOrderReq) FastReadField3(buf []byte) (int, error)
- func (p *CreateOrderReq) FastReadField4(buf []byte) (int, error)
- func (p *CreateOrderReq) FastWrite(buf []byte) int
- func (p *CreateOrderReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CreateOrderReq) Field1DeepEqual(src int64) bool
- func (p *CreateOrderReq) Field2DeepEqual(src string) bool
- func (p *CreateOrderReq) Field3DeepEqual(src int64) bool
- func (p *CreateOrderReq) Field4DeepEqual(src int64) bool
- func (p *CreateOrderReq) GetAddress() (v string)
- func (p *CreateOrderReq) GetProductId() (v int64)
- func (p *CreateOrderReq) GetStockNum() (v int64)
- func (p *CreateOrderReq) GetUserId() (v int64)
- func (p *CreateOrderReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateOrderReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateOrderReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateOrderReq) ReadField3(iprot thrift.TProtocol) error
- func (p *CreateOrderReq) ReadField4(iprot thrift.TProtocol) error
- func (p *CreateOrderReq) SetAddress(val string)
- func (p *CreateOrderReq) SetProductId(val int64)
- func (p *CreateOrderReq) SetStockNum(val int64)
- func (p *CreateOrderReq) SetUserId(val int64)
- func (p *CreateOrderReq) String() string
- func (p *CreateOrderReq) Write(oprot thrift.TProtocol) (err error)
- type CreateOrderResp
- func (p *CreateOrderResp) BLength() int
- func (p *CreateOrderResp) DeepEqual(ano *CreateOrderResp) bool
- func (p *CreateOrderResp) FastRead(buf []byte) (int, error)
- func (p *CreateOrderResp) FastReadField255(buf []byte) (int, error)
- func (p *CreateOrderResp) FastWrite(buf []byte) int
- func (p *CreateOrderResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CreateOrderResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *CreateOrderResp) GetBaseResp() (v *base.BaseResp)
- func (p *CreateOrderResp) IsSetBaseResp() bool
- func (p *CreateOrderResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateOrderResp) ReadField255(iprot thrift.TProtocol) error
- func (p *CreateOrderResp) SetBaseResp(val *base.BaseResp)
- func (p *CreateOrderResp) String() string
- func (p *CreateOrderResp) Write(oprot thrift.TProtocol) (err error)
- type GetOrderByIdReq
- func (p *GetOrderByIdReq) BLength() int
- func (p *GetOrderByIdReq) DeepEqual(ano *GetOrderByIdReq) bool
- func (p *GetOrderByIdReq) FastRead(buf []byte) (int, error)
- func (p *GetOrderByIdReq) FastReadField1(buf []byte) (int, error)
- func (p *GetOrderByIdReq) FastWrite(buf []byte) int
- func (p *GetOrderByIdReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetOrderByIdReq) Field1DeepEqual(src int64) bool
- func (p *GetOrderByIdReq) GetOrderId() (v int64)
- func (p *GetOrderByIdReq) Read(iprot thrift.TProtocol) (err error)
- func (p *GetOrderByIdReq) ReadField1(iprot thrift.TProtocol) error
- func (p *GetOrderByIdReq) SetOrderId(val int64)
- func (p *GetOrderByIdReq) String() string
- func (p *GetOrderByIdReq) Write(oprot thrift.TProtocol) (err error)
- type GetOrderByIdResp
- func (p *GetOrderByIdResp) BLength() int
- func (p *GetOrderByIdResp) DeepEqual(ano *GetOrderByIdResp) bool
- func (p *GetOrderByIdResp) FastRead(buf []byte) (int, error)
- func (p *GetOrderByIdResp) FastReadField1(buf []byte) (int, error)
- func (p *GetOrderByIdResp) FastReadField255(buf []byte) (int, error)
- func (p *GetOrderByIdResp) FastWrite(buf []byte) int
- func (p *GetOrderByIdResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetOrderByIdResp) Field1DeepEqual(src *OrderItem) bool
- func (p *GetOrderByIdResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *GetOrderByIdResp) GetBaseResp() (v *base.BaseResp)
- func (p *GetOrderByIdResp) GetOrder() (v *OrderItem)
- func (p *GetOrderByIdResp) IsSetBaseResp() bool
- func (p *GetOrderByIdResp) IsSetOrder() bool
- func (p *GetOrderByIdResp) Read(iprot thrift.TProtocol) (err error)
- func (p *GetOrderByIdResp) ReadField1(iprot thrift.TProtocol) error
- func (p *GetOrderByIdResp) ReadField255(iprot thrift.TProtocol) error
- func (p *GetOrderByIdResp) SetBaseResp(val *base.BaseResp)
- func (p *GetOrderByIdResp) SetOrder(val *OrderItem)
- func (p *GetOrderByIdResp) String() string
- func (p *GetOrderByIdResp) Write(oprot thrift.TProtocol) (err error)
- type ListOrderReq
- func (p *ListOrderReq) BLength() int
- func (p *ListOrderReq) DeepEqual(ano *ListOrderReq) bool
- func (p *ListOrderReq) FastRead(buf []byte) (int, error)
- func (p *ListOrderReq) FastReadField1(buf []byte) (int, error)
- func (p *ListOrderReq) FastReadField2(buf []byte) (int, error)
- func (p *ListOrderReq) FastWrite(buf []byte) int
- func (p *ListOrderReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListOrderReq) Field1DeepEqual(src int64) bool
- func (p *ListOrderReq) Field2DeepEqual(src *Status) bool
- func (p *ListOrderReq) GetStatus() (v Status)
- func (p *ListOrderReq) GetUserId() (v int64)
- func (p *ListOrderReq) IsSetStatus() bool
- func (p *ListOrderReq) Read(iprot thrift.TProtocol) (err error)
- func (p *ListOrderReq) ReadField1(iprot thrift.TProtocol) error
- func (p *ListOrderReq) ReadField2(iprot thrift.TProtocol) error
- func (p *ListOrderReq) SetStatus(val *Status)
- func (p *ListOrderReq) SetUserId(val int64)
- func (p *ListOrderReq) String() string
- func (p *ListOrderReq) Write(oprot thrift.TProtocol) (err error)
- type ListOrderResp
- func (p *ListOrderResp) BLength() int
- func (p *ListOrderResp) DeepEqual(ano *ListOrderResp) bool
- func (p *ListOrderResp) FastRead(buf []byte) (int, error)
- func (p *ListOrderResp) FastReadField1(buf []byte) (int, error)
- func (p *ListOrderResp) FastReadField255(buf []byte) (int, error)
- func (p *ListOrderResp) FastWrite(buf []byte) int
- func (p *ListOrderResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListOrderResp) Field1DeepEqual(src []*OrderItem) bool
- func (p *ListOrderResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *ListOrderResp) GetBaseResp() (v *base.BaseResp)
- func (p *ListOrderResp) GetOrders() (v []*OrderItem)
- func (p *ListOrderResp) IsSetBaseResp() bool
- func (p *ListOrderResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ListOrderResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ListOrderResp) ReadField255(iprot thrift.TProtocol) error
- func (p *ListOrderResp) SetBaseResp(val *base.BaseResp)
- func (p *ListOrderResp) SetOrders(val []*OrderItem)
- func (p *ListOrderResp) String() string
- func (p *ListOrderResp) Write(oprot thrift.TProtocol) (err error)
- type OrderItem
- func (p *OrderItem) BLength() int
- func (p *OrderItem) DeepEqual(ano *OrderItem) bool
- func (p *OrderItem) FastRead(buf []byte) (int, error)
- func (p *OrderItem) FastReadField1(buf []byte) (int, error)
- func (p *OrderItem) FastReadField10(buf []byte) (int, error)
- func (p *OrderItem) FastReadField2(buf []byte) (int, error)
- func (p *OrderItem) FastReadField3(buf []byte) (int, error)
- func (p *OrderItem) FastReadField4(buf []byte) (int, error)
- func (p *OrderItem) FastReadField5(buf []byte) (int, error)
- func (p *OrderItem) FastReadField6(buf []byte) (int, error)
- func (p *OrderItem) FastReadField7(buf []byte) (int, error)
- func (p *OrderItem) FastReadField8(buf []byte) (int, error)
- func (p *OrderItem) FastReadField9(buf []byte) (int, error)
- func (p *OrderItem) FastWrite(buf []byte) int
- func (p *OrderItem) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderItem) Field10DeepEqual(src int64) bool
- func (p *OrderItem) Field1DeepEqual(src int64) bool
- func (p *OrderItem) Field2DeepEqual(src int64) bool
- func (p *OrderItem) Field3DeepEqual(src string) bool
- func (p *OrderItem) Field4DeepEqual(src string) bool
- func (p *OrderItem) Field5DeepEqual(src int64) bool
- func (p *OrderItem) Field6DeepEqual(src int64) bool
- func (p *OrderItem) Field7DeepEqual(src string) bool
- func (p *OrderItem) Field8DeepEqual(src Status) bool
- func (p *OrderItem) Field9DeepEqual(src int64) bool
- func (p *OrderItem) GetAddress() (v string)
- func (p *OrderItem) GetCreateTime() (v int64)
- func (p *OrderItem) GetOrderId() (v int64)
- func (p *OrderItem) GetProductId() (v int64)
- func (p *OrderItem) GetProductSnapshot() (v string)
- func (p *OrderItem) GetStatus() (v Status)
- func (p *OrderItem) GetStockNum() (v int64)
- func (p *OrderItem) GetUpdateTime() (v int64)
- func (p *OrderItem) GetUserId() (v int64)
- func (p *OrderItem) GetUserName() (v string)
- func (p *OrderItem) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderItem) ReadField1(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField10(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField2(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField3(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField4(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField5(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField6(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField7(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField8(iprot thrift.TProtocol) error
- func (p *OrderItem) ReadField9(iprot thrift.TProtocol) error
- func (p *OrderItem) SetAddress(val string)
- func (p *OrderItem) SetCreateTime(val int64)
- func (p *OrderItem) SetOrderId(val int64)
- func (p *OrderItem) SetProductId(val int64)
- func (p *OrderItem) SetProductSnapshot(val string)
- func (p *OrderItem) SetStatus(val Status)
- func (p *OrderItem) SetStockNum(val int64)
- func (p *OrderItem) SetUpdateTime(val int64)
- func (p *OrderItem) SetUserId(val int64)
- func (p *OrderItem) SetUserName(val string)
- func (p *OrderItem) String() string
- func (p *OrderItem) Write(oprot thrift.TProtocol) (err error)
- type OrderService
- type OrderServiceCancelOrderArgs
- func (p *OrderServiceCancelOrderArgs) BLength() int
- func (p *OrderServiceCancelOrderArgs) DeepEqual(ano *OrderServiceCancelOrderArgs) bool
- func (p *OrderServiceCancelOrderArgs) FastRead(buf []byte) (int, error)
- func (p *OrderServiceCancelOrderArgs) FastReadField1(buf []byte) (int, error)
- func (p *OrderServiceCancelOrderArgs) FastWrite(buf []byte) int
- func (p *OrderServiceCancelOrderArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceCancelOrderArgs) Field1DeepEqual(src *CancelOrderReq) bool
- func (p *OrderServiceCancelOrderArgs) GetFirstArgument() interface{}
- func (p *OrderServiceCancelOrderArgs) GetReq() (v *CancelOrderReq)
- func (p *OrderServiceCancelOrderArgs) IsSetReq() bool
- func (p *OrderServiceCancelOrderArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceCancelOrderArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *OrderServiceCancelOrderArgs) SetReq(val *CancelOrderReq)
- func (p *OrderServiceCancelOrderArgs) String() string
- func (p *OrderServiceCancelOrderArgs) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceCancelOrderResult
- func (p *OrderServiceCancelOrderResult) BLength() int
- func (p *OrderServiceCancelOrderResult) DeepEqual(ano *OrderServiceCancelOrderResult) bool
- func (p *OrderServiceCancelOrderResult) FastRead(buf []byte) (int, error)
- func (p *OrderServiceCancelOrderResult) FastReadField0(buf []byte) (int, error)
- func (p *OrderServiceCancelOrderResult) FastWrite(buf []byte) int
- func (p *OrderServiceCancelOrderResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceCancelOrderResult) Field0DeepEqual(src *CancelOrderResp) bool
- func (p *OrderServiceCancelOrderResult) GetResult() interface{}
- func (p *OrderServiceCancelOrderResult) GetSuccess() (v *CancelOrderResp)
- func (p *OrderServiceCancelOrderResult) IsSetSuccess() bool
- func (p *OrderServiceCancelOrderResult) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceCancelOrderResult) ReadField0(iprot thrift.TProtocol) error
- func (p *OrderServiceCancelOrderResult) SetSuccess(x interface{})
- func (p *OrderServiceCancelOrderResult) String() string
- func (p *OrderServiceCancelOrderResult) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceClient
- func (p *OrderServiceClient) CancelOrder(ctx context.Context, req *CancelOrderReq) (r *CancelOrderResp, err error)
- func (p *OrderServiceClient) Client_() thrift.TClient
- func (p *OrderServiceClient) CreateOrder(ctx context.Context, req *CreateOrderReq) (r *CreateOrderResp, err error)
- func (p *OrderServiceClient) GetOrderById(ctx context.Context, req *GetOrderByIdReq) (r *GetOrderByIdResp, err error)
- func (p *OrderServiceClient) ListOrder(ctx context.Context, req *ListOrderReq) (r *ListOrderResp, err error)
- type OrderServiceCreateOrderArgs
- func (p *OrderServiceCreateOrderArgs) BLength() int
- func (p *OrderServiceCreateOrderArgs) DeepEqual(ano *OrderServiceCreateOrderArgs) bool
- func (p *OrderServiceCreateOrderArgs) FastRead(buf []byte) (int, error)
- func (p *OrderServiceCreateOrderArgs) FastReadField1(buf []byte) (int, error)
- func (p *OrderServiceCreateOrderArgs) FastWrite(buf []byte) int
- func (p *OrderServiceCreateOrderArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceCreateOrderArgs) Field1DeepEqual(src *CreateOrderReq) bool
- func (p *OrderServiceCreateOrderArgs) GetFirstArgument() interface{}
- func (p *OrderServiceCreateOrderArgs) GetReq() (v *CreateOrderReq)
- func (p *OrderServiceCreateOrderArgs) IsSetReq() bool
- func (p *OrderServiceCreateOrderArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceCreateOrderArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *OrderServiceCreateOrderArgs) SetReq(val *CreateOrderReq)
- func (p *OrderServiceCreateOrderArgs) String() string
- func (p *OrderServiceCreateOrderArgs) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceCreateOrderResult
- func (p *OrderServiceCreateOrderResult) BLength() int
- func (p *OrderServiceCreateOrderResult) DeepEqual(ano *OrderServiceCreateOrderResult) bool
- func (p *OrderServiceCreateOrderResult) FastRead(buf []byte) (int, error)
- func (p *OrderServiceCreateOrderResult) FastReadField0(buf []byte) (int, error)
- func (p *OrderServiceCreateOrderResult) FastWrite(buf []byte) int
- func (p *OrderServiceCreateOrderResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceCreateOrderResult) Field0DeepEqual(src *CreateOrderResp) bool
- func (p *OrderServiceCreateOrderResult) GetResult() interface{}
- func (p *OrderServiceCreateOrderResult) GetSuccess() (v *CreateOrderResp)
- func (p *OrderServiceCreateOrderResult) IsSetSuccess() bool
- func (p *OrderServiceCreateOrderResult) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceCreateOrderResult) ReadField0(iprot thrift.TProtocol) error
- func (p *OrderServiceCreateOrderResult) SetSuccess(x interface{})
- func (p *OrderServiceCreateOrderResult) String() string
- func (p *OrderServiceCreateOrderResult) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceGetOrderByIdArgs
- func (p *OrderServiceGetOrderByIdArgs) BLength() int
- func (p *OrderServiceGetOrderByIdArgs) DeepEqual(ano *OrderServiceGetOrderByIdArgs) bool
- func (p *OrderServiceGetOrderByIdArgs) FastRead(buf []byte) (int, error)
- func (p *OrderServiceGetOrderByIdArgs) FastReadField1(buf []byte) (int, error)
- func (p *OrderServiceGetOrderByIdArgs) FastWrite(buf []byte) int
- func (p *OrderServiceGetOrderByIdArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceGetOrderByIdArgs) Field1DeepEqual(src *GetOrderByIdReq) bool
- func (p *OrderServiceGetOrderByIdArgs) GetFirstArgument() interface{}
- func (p *OrderServiceGetOrderByIdArgs) GetReq() (v *GetOrderByIdReq)
- func (p *OrderServiceGetOrderByIdArgs) IsSetReq() bool
- func (p *OrderServiceGetOrderByIdArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceGetOrderByIdArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *OrderServiceGetOrderByIdArgs) SetReq(val *GetOrderByIdReq)
- func (p *OrderServiceGetOrderByIdArgs) String() string
- func (p *OrderServiceGetOrderByIdArgs) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceGetOrderByIdResult
- func (p *OrderServiceGetOrderByIdResult) BLength() int
- func (p *OrderServiceGetOrderByIdResult) DeepEqual(ano *OrderServiceGetOrderByIdResult) bool
- func (p *OrderServiceGetOrderByIdResult) FastRead(buf []byte) (int, error)
- func (p *OrderServiceGetOrderByIdResult) FastReadField0(buf []byte) (int, error)
- func (p *OrderServiceGetOrderByIdResult) FastWrite(buf []byte) int
- func (p *OrderServiceGetOrderByIdResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceGetOrderByIdResult) Field0DeepEqual(src *GetOrderByIdResp) bool
- func (p *OrderServiceGetOrderByIdResult) GetResult() interface{}
- func (p *OrderServiceGetOrderByIdResult) GetSuccess() (v *GetOrderByIdResp)
- func (p *OrderServiceGetOrderByIdResult) IsSetSuccess() bool
- func (p *OrderServiceGetOrderByIdResult) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceGetOrderByIdResult) ReadField0(iprot thrift.TProtocol) error
- func (p *OrderServiceGetOrderByIdResult) SetSuccess(x interface{})
- func (p *OrderServiceGetOrderByIdResult) String() string
- func (p *OrderServiceGetOrderByIdResult) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceListOrderArgs
- func (p *OrderServiceListOrderArgs) BLength() int
- func (p *OrderServiceListOrderArgs) DeepEqual(ano *OrderServiceListOrderArgs) bool
- func (p *OrderServiceListOrderArgs) FastRead(buf []byte) (int, error)
- func (p *OrderServiceListOrderArgs) FastReadField1(buf []byte) (int, error)
- func (p *OrderServiceListOrderArgs) FastWrite(buf []byte) int
- func (p *OrderServiceListOrderArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceListOrderArgs) Field1DeepEqual(src *ListOrderReq) bool
- func (p *OrderServiceListOrderArgs) GetFirstArgument() interface{}
- func (p *OrderServiceListOrderArgs) GetReq() (v *ListOrderReq)
- func (p *OrderServiceListOrderArgs) IsSetReq() bool
- func (p *OrderServiceListOrderArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceListOrderArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *OrderServiceListOrderArgs) SetReq(val *ListOrderReq)
- func (p *OrderServiceListOrderArgs) String() string
- func (p *OrderServiceListOrderArgs) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceListOrderResult
- func (p *OrderServiceListOrderResult) BLength() int
- func (p *OrderServiceListOrderResult) DeepEqual(ano *OrderServiceListOrderResult) bool
- func (p *OrderServiceListOrderResult) FastRead(buf []byte) (int, error)
- func (p *OrderServiceListOrderResult) FastReadField0(buf []byte) (int, error)
- func (p *OrderServiceListOrderResult) FastWrite(buf []byte) int
- func (p *OrderServiceListOrderResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *OrderServiceListOrderResult) Field0DeepEqual(src *ListOrderResp) bool
- func (p *OrderServiceListOrderResult) GetResult() interface{}
- func (p *OrderServiceListOrderResult) GetSuccess() (v *ListOrderResp)
- func (p *OrderServiceListOrderResult) IsSetSuccess() bool
- func (p *OrderServiceListOrderResult) Read(iprot thrift.TProtocol) (err error)
- func (p *OrderServiceListOrderResult) ReadField0(iprot thrift.TProtocol) error
- func (p *OrderServiceListOrderResult) SetSuccess(x interface{})
- func (p *OrderServiceListOrderResult) String() string
- func (p *OrderServiceListOrderResult) Write(oprot thrift.TProtocol) (err error)
- type OrderServiceProcessor
- func (p *OrderServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *OrderServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *OrderServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *OrderServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var CancelOrderResp_BaseResp_DEFAULT *base.BaseResp
View Source
var CreateOrderResp_BaseResp_DEFAULT *base.BaseResp
View Source
var GetOrderByIdResp_BaseResp_DEFAULT *base.BaseResp
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var ListOrderResp_BaseResp_DEFAULT *base.BaseResp
Functions ¶
This section is empty.
Types ¶
type CancelOrderReq ¶
type CancelOrderReq struct {
OrderId int64 `thrift:"order_id,1,required" json:"order_id"`
}
var OrderServiceCancelOrderArgs_Req_DEFAULT *CancelOrderReq
func NewCancelOrderReq ¶
func NewCancelOrderReq() *CancelOrderReq
func (*CancelOrderReq) BLength ¶
func (p *CancelOrderReq) BLength() int
func (*CancelOrderReq) DeepEqual ¶
func (p *CancelOrderReq) DeepEqual(ano *CancelOrderReq) bool
func (*CancelOrderReq) FastReadField1 ¶
func (p *CancelOrderReq) FastReadField1(buf []byte) (int, error)
func (*CancelOrderReq) FastWrite ¶
func (p *CancelOrderReq) FastWrite(buf []byte) int
for compatibility
func (*CancelOrderReq) FastWriteNocopy ¶
func (p *CancelOrderReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CancelOrderReq) Field1DeepEqual ¶
func (p *CancelOrderReq) Field1DeepEqual(src int64) bool
func (*CancelOrderReq) GetOrderId ¶
func (p *CancelOrderReq) GetOrderId() (v int64)
func (*CancelOrderReq) ReadField1 ¶
func (p *CancelOrderReq) ReadField1(iprot thrift.TProtocol) error
func (*CancelOrderReq) SetOrderId ¶
func (p *CancelOrderReq) SetOrderId(val int64)
func (*CancelOrderReq) String ¶
func (p *CancelOrderReq) String() string
type CancelOrderResp ¶
var OrderServiceCancelOrderResult_Success_DEFAULT *CancelOrderResp
func NewCancelOrderResp ¶
func NewCancelOrderResp() *CancelOrderResp
func (*CancelOrderResp) BLength ¶
func (p *CancelOrderResp) BLength() int
func (*CancelOrderResp) DeepEqual ¶
func (p *CancelOrderResp) DeepEqual(ano *CancelOrderResp) bool
func (*CancelOrderResp) FastReadField255 ¶
func (p *CancelOrderResp) FastReadField255(buf []byte) (int, error)
func (*CancelOrderResp) FastWrite ¶
func (p *CancelOrderResp) FastWrite(buf []byte) int
for compatibility
func (*CancelOrderResp) FastWriteNocopy ¶
func (p *CancelOrderResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CancelOrderResp) Field255DeepEqual ¶
func (p *CancelOrderResp) Field255DeepEqual(src *base.BaseResp) bool
func (*CancelOrderResp) GetBaseResp ¶
func (p *CancelOrderResp) GetBaseResp() (v *base.BaseResp)
func (*CancelOrderResp) IsSetBaseResp ¶
func (p *CancelOrderResp) IsSetBaseResp() bool
func (*CancelOrderResp) ReadField255 ¶
func (p *CancelOrderResp) ReadField255(iprot thrift.TProtocol) error
func (*CancelOrderResp) SetBaseResp ¶
func (p *CancelOrderResp) SetBaseResp(val *base.BaseResp)
func (*CancelOrderResp) String ¶
func (p *CancelOrderResp) String() string
type CreateOrderReq ¶
type CreateOrderReq struct { UserId int64 `thrift:"user_id,1,required" json:"user_id"` Address string `thrift:"address,2,required" json:"address"` ProductId int64 `thrift:"product_id,3,required" json:"product_id"` StockNum int64 `thrift:"stock_num,4,required" json:"stock_num"` }
var OrderServiceCreateOrderArgs_Req_DEFAULT *CreateOrderReq
func NewCreateOrderReq ¶
func NewCreateOrderReq() *CreateOrderReq
func (*CreateOrderReq) BLength ¶
func (p *CreateOrderReq) BLength() int
func (*CreateOrderReq) DeepEqual ¶
func (p *CreateOrderReq) DeepEqual(ano *CreateOrderReq) bool
func (*CreateOrderReq) FastReadField1 ¶
func (p *CreateOrderReq) FastReadField1(buf []byte) (int, error)
func (*CreateOrderReq) FastReadField2 ¶
func (p *CreateOrderReq) FastReadField2(buf []byte) (int, error)
func (*CreateOrderReq) FastReadField3 ¶
func (p *CreateOrderReq) FastReadField3(buf []byte) (int, error)
func (*CreateOrderReq) FastReadField4 ¶
func (p *CreateOrderReq) FastReadField4(buf []byte) (int, error)
func (*CreateOrderReq) FastWrite ¶
func (p *CreateOrderReq) FastWrite(buf []byte) int
for compatibility
func (*CreateOrderReq) FastWriteNocopy ¶
func (p *CreateOrderReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CreateOrderReq) Field1DeepEqual ¶
func (p *CreateOrderReq) Field1DeepEqual(src int64) bool
func (*CreateOrderReq) Field2DeepEqual ¶
func (p *CreateOrderReq) Field2DeepEqual(src string) bool
func (*CreateOrderReq) Field3DeepEqual ¶
func (p *CreateOrderReq) Field3DeepEqual(src int64) bool
func (*CreateOrderReq) Field4DeepEqual ¶
func (p *CreateOrderReq) Field4DeepEqual(src int64) bool
func (*CreateOrderReq) GetAddress ¶
func (p *CreateOrderReq) GetAddress() (v string)
func (*CreateOrderReq) GetProductId ¶
func (p *CreateOrderReq) GetProductId() (v int64)
func (*CreateOrderReq) GetStockNum ¶
func (p *CreateOrderReq) GetStockNum() (v int64)
func (*CreateOrderReq) GetUserId ¶
func (p *CreateOrderReq) GetUserId() (v int64)
func (*CreateOrderReq) ReadField1 ¶
func (p *CreateOrderReq) ReadField1(iprot thrift.TProtocol) error
func (*CreateOrderReq) ReadField2 ¶
func (p *CreateOrderReq) ReadField2(iprot thrift.TProtocol) error
func (*CreateOrderReq) ReadField3 ¶
func (p *CreateOrderReq) ReadField3(iprot thrift.TProtocol) error
func (*CreateOrderReq) ReadField4 ¶
func (p *CreateOrderReq) ReadField4(iprot thrift.TProtocol) error
func (*CreateOrderReq) SetAddress ¶
func (p *CreateOrderReq) SetAddress(val string)
func (*CreateOrderReq) SetProductId ¶
func (p *CreateOrderReq) SetProductId(val int64)
func (*CreateOrderReq) SetStockNum ¶
func (p *CreateOrderReq) SetStockNum(val int64)
func (*CreateOrderReq) SetUserId ¶
func (p *CreateOrderReq) SetUserId(val int64)
func (*CreateOrderReq) String ¶
func (p *CreateOrderReq) String() string
type CreateOrderResp ¶
var OrderServiceCreateOrderResult_Success_DEFAULT *CreateOrderResp
func NewCreateOrderResp ¶
func NewCreateOrderResp() *CreateOrderResp
func (*CreateOrderResp) BLength ¶
func (p *CreateOrderResp) BLength() int
func (*CreateOrderResp) DeepEqual ¶
func (p *CreateOrderResp) DeepEqual(ano *CreateOrderResp) bool
func (*CreateOrderResp) FastReadField255 ¶
func (p *CreateOrderResp) FastReadField255(buf []byte) (int, error)
func (*CreateOrderResp) FastWrite ¶
func (p *CreateOrderResp) FastWrite(buf []byte) int
for compatibility
func (*CreateOrderResp) FastWriteNocopy ¶
func (p *CreateOrderResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CreateOrderResp) Field255DeepEqual ¶
func (p *CreateOrderResp) Field255DeepEqual(src *base.BaseResp) bool
func (*CreateOrderResp) GetBaseResp ¶
func (p *CreateOrderResp) GetBaseResp() (v *base.BaseResp)
func (*CreateOrderResp) IsSetBaseResp ¶
func (p *CreateOrderResp) IsSetBaseResp() bool
func (*CreateOrderResp) ReadField255 ¶
func (p *CreateOrderResp) ReadField255(iprot thrift.TProtocol) error
func (*CreateOrderResp) SetBaseResp ¶
func (p *CreateOrderResp) SetBaseResp(val *base.BaseResp)
func (*CreateOrderResp) String ¶
func (p *CreateOrderResp) String() string
type GetOrderByIdReq ¶
type GetOrderByIdReq struct {
OrderId int64 `thrift:"order_id,1,required" json:"order_id"`
}
var OrderServiceGetOrderByIdArgs_Req_DEFAULT *GetOrderByIdReq
func NewGetOrderByIdReq ¶
func NewGetOrderByIdReq() *GetOrderByIdReq
func (*GetOrderByIdReq) BLength ¶
func (p *GetOrderByIdReq) BLength() int
func (*GetOrderByIdReq) DeepEqual ¶
func (p *GetOrderByIdReq) DeepEqual(ano *GetOrderByIdReq) bool
func (*GetOrderByIdReq) FastReadField1 ¶
func (p *GetOrderByIdReq) FastReadField1(buf []byte) (int, error)
func (*GetOrderByIdReq) FastWrite ¶
func (p *GetOrderByIdReq) FastWrite(buf []byte) int
for compatibility
func (*GetOrderByIdReq) FastWriteNocopy ¶
func (p *GetOrderByIdReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GetOrderByIdReq) Field1DeepEqual ¶
func (p *GetOrderByIdReq) Field1DeepEqual(src int64) bool
func (*GetOrderByIdReq) GetOrderId ¶
func (p *GetOrderByIdReq) GetOrderId() (v int64)
func (*GetOrderByIdReq) ReadField1 ¶
func (p *GetOrderByIdReq) ReadField1(iprot thrift.TProtocol) error
func (*GetOrderByIdReq) SetOrderId ¶
func (p *GetOrderByIdReq) SetOrderId(val int64)
func (*GetOrderByIdReq) String ¶
func (p *GetOrderByIdReq) String() string
type GetOrderByIdResp ¶
type GetOrderByIdResp struct { Order *OrderItem `thrift:"order,1" json:"order"` BaseResp *base.BaseResp `thrift:"BaseResp,255" json:"BaseResp"` }
var OrderServiceGetOrderByIdResult_Success_DEFAULT *GetOrderByIdResp
func NewGetOrderByIdResp ¶
func NewGetOrderByIdResp() *GetOrderByIdResp
func (*GetOrderByIdResp) BLength ¶
func (p *GetOrderByIdResp) BLength() int
func (*GetOrderByIdResp) DeepEqual ¶
func (p *GetOrderByIdResp) DeepEqual(ano *GetOrderByIdResp) bool
func (*GetOrderByIdResp) FastReadField1 ¶
func (p *GetOrderByIdResp) FastReadField1(buf []byte) (int, error)
func (*GetOrderByIdResp) FastReadField255 ¶
func (p *GetOrderByIdResp) FastReadField255(buf []byte) (int, error)
func (*GetOrderByIdResp) FastWrite ¶
func (p *GetOrderByIdResp) FastWrite(buf []byte) int
for compatibility
func (*GetOrderByIdResp) FastWriteNocopy ¶
func (p *GetOrderByIdResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GetOrderByIdResp) Field1DeepEqual ¶
func (p *GetOrderByIdResp) Field1DeepEqual(src *OrderItem) bool
func (*GetOrderByIdResp) Field255DeepEqual ¶
func (p *GetOrderByIdResp) Field255DeepEqual(src *base.BaseResp) bool
func (*GetOrderByIdResp) GetBaseResp ¶
func (p *GetOrderByIdResp) GetBaseResp() (v *base.BaseResp)
func (*GetOrderByIdResp) GetOrder ¶
func (p *GetOrderByIdResp) GetOrder() (v *OrderItem)
func (*GetOrderByIdResp) IsSetBaseResp ¶
func (p *GetOrderByIdResp) IsSetBaseResp() bool
func (*GetOrderByIdResp) IsSetOrder ¶
func (p *GetOrderByIdResp) IsSetOrder() bool
func (*GetOrderByIdResp) ReadField1 ¶
func (p *GetOrderByIdResp) ReadField1(iprot thrift.TProtocol) error
func (*GetOrderByIdResp) ReadField255 ¶
func (p *GetOrderByIdResp) ReadField255(iprot thrift.TProtocol) error
func (*GetOrderByIdResp) SetBaseResp ¶
func (p *GetOrderByIdResp) SetBaseResp(val *base.BaseResp)
func (*GetOrderByIdResp) SetOrder ¶
func (p *GetOrderByIdResp) SetOrder(val *OrderItem)
func (*GetOrderByIdResp) String ¶
func (p *GetOrderByIdResp) String() string
type ListOrderReq ¶
type ListOrderReq struct { UserId int64 `thrift:"user_id,1,required" json:"user_id"` Status *Status `thrift:"status,2" json:"status,omitempty"` }
var OrderServiceListOrderArgs_Req_DEFAULT *ListOrderReq
func NewListOrderReq ¶
func NewListOrderReq() *ListOrderReq
func (*ListOrderReq) BLength ¶
func (p *ListOrderReq) BLength() int
func (*ListOrderReq) DeepEqual ¶
func (p *ListOrderReq) DeepEqual(ano *ListOrderReq) bool
func (*ListOrderReq) FastReadField1 ¶
func (p *ListOrderReq) FastReadField1(buf []byte) (int, error)
func (*ListOrderReq) FastReadField2 ¶
func (p *ListOrderReq) FastReadField2(buf []byte) (int, error)
func (*ListOrderReq) FastWriteNocopy ¶
func (p *ListOrderReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListOrderReq) Field1DeepEqual ¶
func (p *ListOrderReq) Field1DeepEqual(src int64) bool
func (*ListOrderReq) Field2DeepEqual ¶
func (p *ListOrderReq) Field2DeepEqual(src *Status) bool
func (*ListOrderReq) GetStatus ¶
func (p *ListOrderReq) GetStatus() (v Status)
func (*ListOrderReq) GetUserId ¶
func (p *ListOrderReq) GetUserId() (v int64)
func (*ListOrderReq) IsSetStatus ¶
func (p *ListOrderReq) IsSetStatus() bool
func (*ListOrderReq) ReadField1 ¶
func (p *ListOrderReq) ReadField1(iprot thrift.TProtocol) error
func (*ListOrderReq) ReadField2 ¶
func (p *ListOrderReq) ReadField2(iprot thrift.TProtocol) error
func (*ListOrderReq) SetStatus ¶
func (p *ListOrderReq) SetStatus(val *Status)
func (*ListOrderReq) SetUserId ¶
func (p *ListOrderReq) SetUserId(val int64)
func (*ListOrderReq) String ¶
func (p *ListOrderReq) String() string
type ListOrderResp ¶
type ListOrderResp struct { Orders []*OrderItem `thrift:"orders,1" json:"orders"` BaseResp *base.BaseResp `thrift:"BaseResp,255" json:"BaseResp"` }
var OrderServiceListOrderResult_Success_DEFAULT *ListOrderResp
func NewListOrderResp ¶
func NewListOrderResp() *ListOrderResp
func (*ListOrderResp) BLength ¶
func (p *ListOrderResp) BLength() int
func (*ListOrderResp) DeepEqual ¶
func (p *ListOrderResp) DeepEqual(ano *ListOrderResp) bool
func (*ListOrderResp) FastReadField1 ¶
func (p *ListOrderResp) FastReadField1(buf []byte) (int, error)
func (*ListOrderResp) FastReadField255 ¶
func (p *ListOrderResp) FastReadField255(buf []byte) (int, error)
func (*ListOrderResp) FastWrite ¶
func (p *ListOrderResp) FastWrite(buf []byte) int
for compatibility
func (*ListOrderResp) FastWriteNocopy ¶
func (p *ListOrderResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListOrderResp) Field1DeepEqual ¶
func (p *ListOrderResp) Field1DeepEqual(src []*OrderItem) bool
func (*ListOrderResp) Field255DeepEqual ¶
func (p *ListOrderResp) Field255DeepEqual(src *base.BaseResp) bool
func (*ListOrderResp) GetBaseResp ¶
func (p *ListOrderResp) GetBaseResp() (v *base.BaseResp)
func (*ListOrderResp) GetOrders ¶
func (p *ListOrderResp) GetOrders() (v []*OrderItem)
func (*ListOrderResp) IsSetBaseResp ¶
func (p *ListOrderResp) IsSetBaseResp() bool
func (*ListOrderResp) ReadField1 ¶
func (p *ListOrderResp) ReadField1(iprot thrift.TProtocol) error
func (*ListOrderResp) ReadField255 ¶
func (p *ListOrderResp) ReadField255(iprot thrift.TProtocol) error
func (*ListOrderResp) SetBaseResp ¶
func (p *ListOrderResp) SetBaseResp(val *base.BaseResp)
func (*ListOrderResp) SetOrders ¶
func (p *ListOrderResp) SetOrders(val []*OrderItem)
func (*ListOrderResp) String ¶
func (p *ListOrderResp) String() string
type OrderItem ¶
type OrderItem struct { OrderId int64 `thrift:"order_id,1" json:"order_id"` UserId int64 `thrift:"user_id,2" json:"user_id"` UserName string `thrift:"user_name,3" json:"user_name"` Address string `thrift:"address,4" json:"address"` ProductId int64 `thrift:"product_id,5" json:"product_id"` StockNum int64 `thrift:"stock_num,6" json:"stock_num"` ProductSnapshot string `thrift:"product_snapshot,7" json:"product_snapshot"` Status Status `thrift:"status,8" json:"status"` CreateTime int64 `thrift:"create_time,9" json:"create_time"` UpdateTime int64 `thrift:"update_time,10" json:"update_time"` }
var GetOrderByIdResp_Order_DEFAULT *OrderItem
func NewOrderItem ¶
func NewOrderItem() *OrderItem
func (*OrderItem) FastWriteNocopy ¶
func (p *OrderItem) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderItem) Field10DeepEqual ¶
func (*OrderItem) Field1DeepEqual ¶
func (*OrderItem) Field2DeepEqual ¶
func (*OrderItem) Field3DeepEqual ¶
func (*OrderItem) Field4DeepEqual ¶
func (*OrderItem) Field5DeepEqual ¶
func (*OrderItem) Field6DeepEqual ¶
func (*OrderItem) Field7DeepEqual ¶
func (*OrderItem) Field8DeepEqual ¶
func (*OrderItem) Field9DeepEqual ¶
func (*OrderItem) GetAddress ¶
func (*OrderItem) GetCreateTime ¶
func (*OrderItem) GetOrderId ¶
func (*OrderItem) GetProductId ¶
func (*OrderItem) GetProductSnapshot ¶
func (*OrderItem) GetStockNum ¶
func (*OrderItem) GetUpdateTime ¶
func (*OrderItem) GetUserName ¶
func (*OrderItem) SetAddress ¶
func (*OrderItem) SetCreateTime ¶
func (*OrderItem) SetOrderId ¶
func (*OrderItem) SetProductId ¶
func (*OrderItem) SetProductSnapshot ¶
func (*OrderItem) SetStockNum ¶
func (*OrderItem) SetUpdateTime ¶
func (*OrderItem) SetUserName ¶
type OrderService ¶
type OrderService interface { CreateOrder(ctx context.Context, req *CreateOrderReq) (r *CreateOrderResp, err error) CancelOrder(ctx context.Context, req *CancelOrderReq) (r *CancelOrderResp, err error) ListOrder(ctx context.Context, req *ListOrderReq) (r *ListOrderResp, err error) GetOrderById(ctx context.Context, req *GetOrderByIdReq) (r *GetOrderByIdResp, err error) }
type OrderServiceCancelOrderArgs ¶
type OrderServiceCancelOrderArgs struct {
Req *CancelOrderReq `thrift:"req,1" json:"req"`
}
func NewOrderServiceCancelOrderArgs ¶
func NewOrderServiceCancelOrderArgs() *OrderServiceCancelOrderArgs
func (*OrderServiceCancelOrderArgs) BLength ¶
func (p *OrderServiceCancelOrderArgs) BLength() int
func (*OrderServiceCancelOrderArgs) DeepEqual ¶
func (p *OrderServiceCancelOrderArgs) DeepEqual(ano *OrderServiceCancelOrderArgs) bool
func (*OrderServiceCancelOrderArgs) FastRead ¶
func (p *OrderServiceCancelOrderArgs) FastRead(buf []byte) (int, error)
func (*OrderServiceCancelOrderArgs) FastReadField1 ¶
func (p *OrderServiceCancelOrderArgs) FastReadField1(buf []byte) (int, error)
func (*OrderServiceCancelOrderArgs) FastWrite ¶
func (p *OrderServiceCancelOrderArgs) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceCancelOrderArgs) FastWriteNocopy ¶
func (p *OrderServiceCancelOrderArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceCancelOrderArgs) Field1DeepEqual ¶
func (p *OrderServiceCancelOrderArgs) Field1DeepEqual(src *CancelOrderReq) bool
func (*OrderServiceCancelOrderArgs) GetFirstArgument ¶
func (p *OrderServiceCancelOrderArgs) GetFirstArgument() interface{}
func (*OrderServiceCancelOrderArgs) GetReq ¶
func (p *OrderServiceCancelOrderArgs) GetReq() (v *CancelOrderReq)
func (*OrderServiceCancelOrderArgs) IsSetReq ¶
func (p *OrderServiceCancelOrderArgs) IsSetReq() bool
func (*OrderServiceCancelOrderArgs) Read ¶
func (p *OrderServiceCancelOrderArgs) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceCancelOrderArgs) ReadField1 ¶
func (p *OrderServiceCancelOrderArgs) ReadField1(iprot thrift.TProtocol) error
func (*OrderServiceCancelOrderArgs) SetReq ¶
func (p *OrderServiceCancelOrderArgs) SetReq(val *CancelOrderReq)
func (*OrderServiceCancelOrderArgs) String ¶
func (p *OrderServiceCancelOrderArgs) String() string
type OrderServiceCancelOrderResult ¶
type OrderServiceCancelOrderResult struct {
Success *CancelOrderResp `thrift:"success,0" json:"success,omitempty"`
}
func NewOrderServiceCancelOrderResult ¶
func NewOrderServiceCancelOrderResult() *OrderServiceCancelOrderResult
func (*OrderServiceCancelOrderResult) BLength ¶
func (p *OrderServiceCancelOrderResult) BLength() int
func (*OrderServiceCancelOrderResult) DeepEqual ¶
func (p *OrderServiceCancelOrderResult) DeepEqual(ano *OrderServiceCancelOrderResult) bool
func (*OrderServiceCancelOrderResult) FastRead ¶
func (p *OrderServiceCancelOrderResult) FastRead(buf []byte) (int, error)
func (*OrderServiceCancelOrderResult) FastReadField0 ¶
func (p *OrderServiceCancelOrderResult) FastReadField0(buf []byte) (int, error)
func (*OrderServiceCancelOrderResult) FastWrite ¶
func (p *OrderServiceCancelOrderResult) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceCancelOrderResult) FastWriteNocopy ¶
func (p *OrderServiceCancelOrderResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceCancelOrderResult) Field0DeepEqual ¶
func (p *OrderServiceCancelOrderResult) Field0DeepEqual(src *CancelOrderResp) bool
func (*OrderServiceCancelOrderResult) GetResult ¶
func (p *OrderServiceCancelOrderResult) GetResult() interface{}
func (*OrderServiceCancelOrderResult) GetSuccess ¶
func (p *OrderServiceCancelOrderResult) GetSuccess() (v *CancelOrderResp)
func (*OrderServiceCancelOrderResult) IsSetSuccess ¶
func (p *OrderServiceCancelOrderResult) IsSetSuccess() bool
func (*OrderServiceCancelOrderResult) Read ¶
func (p *OrderServiceCancelOrderResult) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceCancelOrderResult) ReadField0 ¶
func (p *OrderServiceCancelOrderResult) ReadField0(iprot thrift.TProtocol) error
func (*OrderServiceCancelOrderResult) SetSuccess ¶
func (p *OrderServiceCancelOrderResult) SetSuccess(x interface{})
func (*OrderServiceCancelOrderResult) String ¶
func (p *OrderServiceCancelOrderResult) String() string
type OrderServiceClient ¶
type OrderServiceClient struct {
// contains filtered or unexported fields
}
func NewOrderServiceClient ¶
func NewOrderServiceClient(c thrift.TClient) *OrderServiceClient
func NewOrderServiceClientFactory ¶
func NewOrderServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *OrderServiceClient
func NewOrderServiceClientProtocol ¶
func NewOrderServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *OrderServiceClient
func (*OrderServiceClient) CancelOrder ¶
func (p *OrderServiceClient) CancelOrder(ctx context.Context, req *CancelOrderReq) (r *CancelOrderResp, err error)
func (*OrderServiceClient) Client_ ¶
func (p *OrderServiceClient) Client_() thrift.TClient
func (*OrderServiceClient) CreateOrder ¶
func (p *OrderServiceClient) CreateOrder(ctx context.Context, req *CreateOrderReq) (r *CreateOrderResp, err error)
func (*OrderServiceClient) GetOrderById ¶
func (p *OrderServiceClient) GetOrderById(ctx context.Context, req *GetOrderByIdReq) (r *GetOrderByIdResp, err error)
func (*OrderServiceClient) ListOrder ¶
func (p *OrderServiceClient) ListOrder(ctx context.Context, req *ListOrderReq) (r *ListOrderResp, err error)
type OrderServiceCreateOrderArgs ¶
type OrderServiceCreateOrderArgs struct {
Req *CreateOrderReq `thrift:"req,1" json:"req"`
}
func NewOrderServiceCreateOrderArgs ¶
func NewOrderServiceCreateOrderArgs() *OrderServiceCreateOrderArgs
func (*OrderServiceCreateOrderArgs) BLength ¶
func (p *OrderServiceCreateOrderArgs) BLength() int
func (*OrderServiceCreateOrderArgs) DeepEqual ¶
func (p *OrderServiceCreateOrderArgs) DeepEqual(ano *OrderServiceCreateOrderArgs) bool
func (*OrderServiceCreateOrderArgs) FastRead ¶
func (p *OrderServiceCreateOrderArgs) FastRead(buf []byte) (int, error)
func (*OrderServiceCreateOrderArgs) FastReadField1 ¶
func (p *OrderServiceCreateOrderArgs) FastReadField1(buf []byte) (int, error)
func (*OrderServiceCreateOrderArgs) FastWrite ¶
func (p *OrderServiceCreateOrderArgs) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceCreateOrderArgs) FastWriteNocopy ¶
func (p *OrderServiceCreateOrderArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceCreateOrderArgs) Field1DeepEqual ¶
func (p *OrderServiceCreateOrderArgs) Field1DeepEqual(src *CreateOrderReq) bool
func (*OrderServiceCreateOrderArgs) GetFirstArgument ¶
func (p *OrderServiceCreateOrderArgs) GetFirstArgument() interface{}
func (*OrderServiceCreateOrderArgs) GetReq ¶
func (p *OrderServiceCreateOrderArgs) GetReq() (v *CreateOrderReq)
func (*OrderServiceCreateOrderArgs) IsSetReq ¶
func (p *OrderServiceCreateOrderArgs) IsSetReq() bool
func (*OrderServiceCreateOrderArgs) Read ¶
func (p *OrderServiceCreateOrderArgs) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceCreateOrderArgs) ReadField1 ¶
func (p *OrderServiceCreateOrderArgs) ReadField1(iprot thrift.TProtocol) error
func (*OrderServiceCreateOrderArgs) SetReq ¶
func (p *OrderServiceCreateOrderArgs) SetReq(val *CreateOrderReq)
func (*OrderServiceCreateOrderArgs) String ¶
func (p *OrderServiceCreateOrderArgs) String() string
type OrderServiceCreateOrderResult ¶
type OrderServiceCreateOrderResult struct {
Success *CreateOrderResp `thrift:"success,0" json:"success,omitempty"`
}
func NewOrderServiceCreateOrderResult ¶
func NewOrderServiceCreateOrderResult() *OrderServiceCreateOrderResult
func (*OrderServiceCreateOrderResult) BLength ¶
func (p *OrderServiceCreateOrderResult) BLength() int
func (*OrderServiceCreateOrderResult) DeepEqual ¶
func (p *OrderServiceCreateOrderResult) DeepEqual(ano *OrderServiceCreateOrderResult) bool
func (*OrderServiceCreateOrderResult) FastRead ¶
func (p *OrderServiceCreateOrderResult) FastRead(buf []byte) (int, error)
func (*OrderServiceCreateOrderResult) FastReadField0 ¶
func (p *OrderServiceCreateOrderResult) FastReadField0(buf []byte) (int, error)
func (*OrderServiceCreateOrderResult) FastWrite ¶
func (p *OrderServiceCreateOrderResult) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceCreateOrderResult) FastWriteNocopy ¶
func (p *OrderServiceCreateOrderResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceCreateOrderResult) Field0DeepEqual ¶
func (p *OrderServiceCreateOrderResult) Field0DeepEqual(src *CreateOrderResp) bool
func (*OrderServiceCreateOrderResult) GetResult ¶
func (p *OrderServiceCreateOrderResult) GetResult() interface{}
func (*OrderServiceCreateOrderResult) GetSuccess ¶
func (p *OrderServiceCreateOrderResult) GetSuccess() (v *CreateOrderResp)
func (*OrderServiceCreateOrderResult) IsSetSuccess ¶
func (p *OrderServiceCreateOrderResult) IsSetSuccess() bool
func (*OrderServiceCreateOrderResult) Read ¶
func (p *OrderServiceCreateOrderResult) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceCreateOrderResult) ReadField0 ¶
func (p *OrderServiceCreateOrderResult) ReadField0(iprot thrift.TProtocol) error
func (*OrderServiceCreateOrderResult) SetSuccess ¶
func (p *OrderServiceCreateOrderResult) SetSuccess(x interface{})
func (*OrderServiceCreateOrderResult) String ¶
func (p *OrderServiceCreateOrderResult) String() string
type OrderServiceGetOrderByIdArgs ¶
type OrderServiceGetOrderByIdArgs struct {
Req *GetOrderByIdReq `thrift:"req,1" json:"req"`
}
func NewOrderServiceGetOrderByIdArgs ¶
func NewOrderServiceGetOrderByIdArgs() *OrderServiceGetOrderByIdArgs
func (*OrderServiceGetOrderByIdArgs) BLength ¶
func (p *OrderServiceGetOrderByIdArgs) BLength() int
func (*OrderServiceGetOrderByIdArgs) DeepEqual ¶
func (p *OrderServiceGetOrderByIdArgs) DeepEqual(ano *OrderServiceGetOrderByIdArgs) bool
func (*OrderServiceGetOrderByIdArgs) FastRead ¶
func (p *OrderServiceGetOrderByIdArgs) FastRead(buf []byte) (int, error)
func (*OrderServiceGetOrderByIdArgs) FastReadField1 ¶
func (p *OrderServiceGetOrderByIdArgs) FastReadField1(buf []byte) (int, error)
func (*OrderServiceGetOrderByIdArgs) FastWrite ¶
func (p *OrderServiceGetOrderByIdArgs) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceGetOrderByIdArgs) FastWriteNocopy ¶
func (p *OrderServiceGetOrderByIdArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceGetOrderByIdArgs) Field1DeepEqual ¶
func (p *OrderServiceGetOrderByIdArgs) Field1DeepEqual(src *GetOrderByIdReq) bool
func (*OrderServiceGetOrderByIdArgs) GetFirstArgument ¶
func (p *OrderServiceGetOrderByIdArgs) GetFirstArgument() interface{}
func (*OrderServiceGetOrderByIdArgs) GetReq ¶
func (p *OrderServiceGetOrderByIdArgs) GetReq() (v *GetOrderByIdReq)
func (*OrderServiceGetOrderByIdArgs) IsSetReq ¶
func (p *OrderServiceGetOrderByIdArgs) IsSetReq() bool
func (*OrderServiceGetOrderByIdArgs) Read ¶
func (p *OrderServiceGetOrderByIdArgs) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceGetOrderByIdArgs) ReadField1 ¶
func (p *OrderServiceGetOrderByIdArgs) ReadField1(iprot thrift.TProtocol) error
func (*OrderServiceGetOrderByIdArgs) SetReq ¶
func (p *OrderServiceGetOrderByIdArgs) SetReq(val *GetOrderByIdReq)
func (*OrderServiceGetOrderByIdArgs) String ¶
func (p *OrderServiceGetOrderByIdArgs) String() string
type OrderServiceGetOrderByIdResult ¶
type OrderServiceGetOrderByIdResult struct {
Success *GetOrderByIdResp `thrift:"success,0" json:"success,omitempty"`
}
func NewOrderServiceGetOrderByIdResult ¶
func NewOrderServiceGetOrderByIdResult() *OrderServiceGetOrderByIdResult
func (*OrderServiceGetOrderByIdResult) BLength ¶
func (p *OrderServiceGetOrderByIdResult) BLength() int
func (*OrderServiceGetOrderByIdResult) DeepEqual ¶
func (p *OrderServiceGetOrderByIdResult) DeepEqual(ano *OrderServiceGetOrderByIdResult) bool
func (*OrderServiceGetOrderByIdResult) FastRead ¶
func (p *OrderServiceGetOrderByIdResult) FastRead(buf []byte) (int, error)
func (*OrderServiceGetOrderByIdResult) FastReadField0 ¶
func (p *OrderServiceGetOrderByIdResult) FastReadField0(buf []byte) (int, error)
func (*OrderServiceGetOrderByIdResult) FastWrite ¶
func (p *OrderServiceGetOrderByIdResult) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceGetOrderByIdResult) FastWriteNocopy ¶
func (p *OrderServiceGetOrderByIdResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceGetOrderByIdResult) Field0DeepEqual ¶
func (p *OrderServiceGetOrderByIdResult) Field0DeepEqual(src *GetOrderByIdResp) bool
func (*OrderServiceGetOrderByIdResult) GetResult ¶
func (p *OrderServiceGetOrderByIdResult) GetResult() interface{}
func (*OrderServiceGetOrderByIdResult) GetSuccess ¶
func (p *OrderServiceGetOrderByIdResult) GetSuccess() (v *GetOrderByIdResp)
func (*OrderServiceGetOrderByIdResult) IsSetSuccess ¶
func (p *OrderServiceGetOrderByIdResult) IsSetSuccess() bool
func (*OrderServiceGetOrderByIdResult) Read ¶
func (p *OrderServiceGetOrderByIdResult) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceGetOrderByIdResult) ReadField0 ¶
func (p *OrderServiceGetOrderByIdResult) ReadField0(iprot thrift.TProtocol) error
func (*OrderServiceGetOrderByIdResult) SetSuccess ¶
func (p *OrderServiceGetOrderByIdResult) SetSuccess(x interface{})
func (*OrderServiceGetOrderByIdResult) String ¶
func (p *OrderServiceGetOrderByIdResult) String() string
type OrderServiceListOrderArgs ¶
type OrderServiceListOrderArgs struct {
Req *ListOrderReq `thrift:"req,1" json:"req"`
}
func NewOrderServiceListOrderArgs ¶
func NewOrderServiceListOrderArgs() *OrderServiceListOrderArgs
func (*OrderServiceListOrderArgs) BLength ¶
func (p *OrderServiceListOrderArgs) BLength() int
func (*OrderServiceListOrderArgs) DeepEqual ¶
func (p *OrderServiceListOrderArgs) DeepEqual(ano *OrderServiceListOrderArgs) bool
func (*OrderServiceListOrderArgs) FastRead ¶
func (p *OrderServiceListOrderArgs) FastRead(buf []byte) (int, error)
func (*OrderServiceListOrderArgs) FastReadField1 ¶
func (p *OrderServiceListOrderArgs) FastReadField1(buf []byte) (int, error)
func (*OrderServiceListOrderArgs) FastWrite ¶
func (p *OrderServiceListOrderArgs) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceListOrderArgs) FastWriteNocopy ¶
func (p *OrderServiceListOrderArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceListOrderArgs) Field1DeepEqual ¶
func (p *OrderServiceListOrderArgs) Field1DeepEqual(src *ListOrderReq) bool
func (*OrderServiceListOrderArgs) GetFirstArgument ¶
func (p *OrderServiceListOrderArgs) GetFirstArgument() interface{}
func (*OrderServiceListOrderArgs) GetReq ¶
func (p *OrderServiceListOrderArgs) GetReq() (v *ListOrderReq)
func (*OrderServiceListOrderArgs) IsSetReq ¶
func (p *OrderServiceListOrderArgs) IsSetReq() bool
func (*OrderServiceListOrderArgs) Read ¶
func (p *OrderServiceListOrderArgs) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceListOrderArgs) ReadField1 ¶
func (p *OrderServiceListOrderArgs) ReadField1(iprot thrift.TProtocol) error
func (*OrderServiceListOrderArgs) SetReq ¶
func (p *OrderServiceListOrderArgs) SetReq(val *ListOrderReq)
func (*OrderServiceListOrderArgs) String ¶
func (p *OrderServiceListOrderArgs) String() string
type OrderServiceListOrderResult ¶
type OrderServiceListOrderResult struct {
Success *ListOrderResp `thrift:"success,0" json:"success,omitempty"`
}
func NewOrderServiceListOrderResult ¶
func NewOrderServiceListOrderResult() *OrderServiceListOrderResult
func (*OrderServiceListOrderResult) BLength ¶
func (p *OrderServiceListOrderResult) BLength() int
func (*OrderServiceListOrderResult) DeepEqual ¶
func (p *OrderServiceListOrderResult) DeepEqual(ano *OrderServiceListOrderResult) bool
func (*OrderServiceListOrderResult) FastRead ¶
func (p *OrderServiceListOrderResult) FastRead(buf []byte) (int, error)
func (*OrderServiceListOrderResult) FastReadField0 ¶
func (p *OrderServiceListOrderResult) FastReadField0(buf []byte) (int, error)
func (*OrderServiceListOrderResult) FastWrite ¶
func (p *OrderServiceListOrderResult) FastWrite(buf []byte) int
for compatibility
func (*OrderServiceListOrderResult) FastWriteNocopy ¶
func (p *OrderServiceListOrderResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*OrderServiceListOrderResult) Field0DeepEqual ¶
func (p *OrderServiceListOrderResult) Field0DeepEqual(src *ListOrderResp) bool
func (*OrderServiceListOrderResult) GetResult ¶
func (p *OrderServiceListOrderResult) GetResult() interface{}
func (*OrderServiceListOrderResult) GetSuccess ¶
func (p *OrderServiceListOrderResult) GetSuccess() (v *ListOrderResp)
func (*OrderServiceListOrderResult) IsSetSuccess ¶
func (p *OrderServiceListOrderResult) IsSetSuccess() bool
func (*OrderServiceListOrderResult) Read ¶
func (p *OrderServiceListOrderResult) Read(iprot thrift.TProtocol) (err error)
func (*OrderServiceListOrderResult) ReadField0 ¶
func (p *OrderServiceListOrderResult) ReadField0(iprot thrift.TProtocol) error
func (*OrderServiceListOrderResult) SetSuccess ¶
func (p *OrderServiceListOrderResult) SetSuccess(x interface{})
func (*OrderServiceListOrderResult) String ¶
func (p *OrderServiceListOrderResult) String() string
type OrderServiceProcessor ¶
type OrderServiceProcessor struct {
// contains filtered or unexported fields
}
func NewOrderServiceProcessor ¶
func NewOrderServiceProcessor(handler OrderService) *OrderServiceProcessor
func (*OrderServiceProcessor) AddToProcessorMap ¶
func (p *OrderServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*OrderServiceProcessor) GetProcessorFunction ¶
func (p *OrderServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*OrderServiceProcessor) Process ¶
func (p *OrderServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*OrderServiceProcessor) ProcessorMap ¶
func (p *OrderServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.