Documentation ¶
Index ¶
- Variables
- type CartService
- type CartServiceAddProductToCartArgs
- func (p *CartServiceAddProductToCartArgs) BLength() int
- func (p *CartServiceAddProductToCartArgs) DeepEqual(ano *CartServiceAddProductToCartArgs) bool
- func (p *CartServiceAddProductToCartArgs) FastRead(buf []byte) (int, error)
- func (p *CartServiceAddProductToCartArgs) FastReadField1(buf []byte) (int, error)
- func (p *CartServiceAddProductToCartArgs) FastWrite(buf []byte) int
- func (p *CartServiceAddProductToCartArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CartServiceAddProductToCartArgs) Field1DeepEqual(src *MallAddProductToCartRequest) bool
- func (p *CartServiceAddProductToCartArgs) GetFirstArgument() interface{}
- func (p *CartServiceAddProductToCartArgs) GetReq() (v *MallAddProductToCartRequest)
- func (p *CartServiceAddProductToCartArgs) InitDefault()
- func (p *CartServiceAddProductToCartArgs) IsSetReq() bool
- func (p *CartServiceAddProductToCartArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CartServiceAddProductToCartArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CartServiceAddProductToCartArgs) SetReq(val *MallAddProductToCartRequest)
- func (p *CartServiceAddProductToCartArgs) String() string
- func (p *CartServiceAddProductToCartArgs) Write(oprot thrift.TProtocol) (err error)
- type CartServiceAddProductToCartResult
- func (p *CartServiceAddProductToCartResult) BLength() int
- func (p *CartServiceAddProductToCartResult) DeepEqual(ano *CartServiceAddProductToCartResult) bool
- func (p *CartServiceAddProductToCartResult) FastRead(buf []byte) (int, error)
- func (p *CartServiceAddProductToCartResult) FastReadField0(buf []byte) (int, error)
- func (p *CartServiceAddProductToCartResult) FastWrite(buf []byte) int
- func (p *CartServiceAddProductToCartResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CartServiceAddProductToCartResult) Field0DeepEqual(src *MallAddProductToCartResponse) bool
- func (p *CartServiceAddProductToCartResult) GetResult() interface{}
- func (p *CartServiceAddProductToCartResult) GetSuccess() (v *MallAddProductToCartResponse)
- func (p *CartServiceAddProductToCartResult) InitDefault()
- func (p *CartServiceAddProductToCartResult) IsSetSuccess() bool
- func (p *CartServiceAddProductToCartResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CartServiceAddProductToCartResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CartServiceAddProductToCartResult) SetSuccess(x interface{})
- func (p *CartServiceAddProductToCartResult) String() string
- func (p *CartServiceAddProductToCartResult) Write(oprot thrift.TProtocol) (err error)
- type CartServiceClient
- func (p *CartServiceClient) AddProductToCart(ctx context.Context, req *MallAddProductToCartRequest) (r *MallAddProductToCartResponse, err error)
- func (p *CartServiceClient) Client_() thrift.TClient
- func (p *CartServiceClient) DelCartProduct(ctx context.Context, req *MallDelCartProductRequest) (r *MallDelCartProductResponse, err error)
- func (p *CartServiceClient) GetCart(ctx context.Context, req *MallGetCartRequest) (r *MallGetCartResponse, err error)
- type CartServiceDelCartProductArgs
- func (p *CartServiceDelCartProductArgs) BLength() int
- func (p *CartServiceDelCartProductArgs) DeepEqual(ano *CartServiceDelCartProductArgs) bool
- func (p *CartServiceDelCartProductArgs) FastRead(buf []byte) (int, error)
- func (p *CartServiceDelCartProductArgs) FastReadField1(buf []byte) (int, error)
- func (p *CartServiceDelCartProductArgs) FastWrite(buf []byte) int
- func (p *CartServiceDelCartProductArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CartServiceDelCartProductArgs) Field1DeepEqual(src *MallDelCartProductRequest) bool
- func (p *CartServiceDelCartProductArgs) GetFirstArgument() interface{}
- func (p *CartServiceDelCartProductArgs) GetReq() (v *MallDelCartProductRequest)
- func (p *CartServiceDelCartProductArgs) InitDefault()
- func (p *CartServiceDelCartProductArgs) IsSetReq() bool
- func (p *CartServiceDelCartProductArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CartServiceDelCartProductArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CartServiceDelCartProductArgs) SetReq(val *MallDelCartProductRequest)
- func (p *CartServiceDelCartProductArgs) String() string
- func (p *CartServiceDelCartProductArgs) Write(oprot thrift.TProtocol) (err error)
- type CartServiceDelCartProductResult
- func (p *CartServiceDelCartProductResult) BLength() int
- func (p *CartServiceDelCartProductResult) DeepEqual(ano *CartServiceDelCartProductResult) bool
- func (p *CartServiceDelCartProductResult) FastRead(buf []byte) (int, error)
- func (p *CartServiceDelCartProductResult) FastReadField0(buf []byte) (int, error)
- func (p *CartServiceDelCartProductResult) FastWrite(buf []byte) int
- func (p *CartServiceDelCartProductResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CartServiceDelCartProductResult) Field0DeepEqual(src *MallDelCartProductResponse) bool
- func (p *CartServiceDelCartProductResult) GetResult() interface{}
- func (p *CartServiceDelCartProductResult) GetSuccess() (v *MallDelCartProductResponse)
- func (p *CartServiceDelCartProductResult) InitDefault()
- func (p *CartServiceDelCartProductResult) IsSetSuccess() bool
- func (p *CartServiceDelCartProductResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CartServiceDelCartProductResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CartServiceDelCartProductResult) SetSuccess(x interface{})
- func (p *CartServiceDelCartProductResult) String() string
- func (p *CartServiceDelCartProductResult) Write(oprot thrift.TProtocol) (err error)
- type CartServiceGetCartArgs
- func (p *CartServiceGetCartArgs) BLength() int
- func (p *CartServiceGetCartArgs) DeepEqual(ano *CartServiceGetCartArgs) bool
- func (p *CartServiceGetCartArgs) FastRead(buf []byte) (int, error)
- func (p *CartServiceGetCartArgs) FastReadField1(buf []byte) (int, error)
- func (p *CartServiceGetCartArgs) FastWrite(buf []byte) int
- func (p *CartServiceGetCartArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CartServiceGetCartArgs) Field1DeepEqual(src *MallGetCartRequest) bool
- func (p *CartServiceGetCartArgs) GetFirstArgument() interface{}
- func (p *CartServiceGetCartArgs) GetReq() (v *MallGetCartRequest)
- func (p *CartServiceGetCartArgs) InitDefault()
- func (p *CartServiceGetCartArgs) IsSetReq() bool
- func (p *CartServiceGetCartArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CartServiceGetCartArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CartServiceGetCartArgs) SetReq(val *MallGetCartRequest)
- func (p *CartServiceGetCartArgs) String() string
- func (p *CartServiceGetCartArgs) Write(oprot thrift.TProtocol) (err error)
- type CartServiceGetCartResult
- func (p *CartServiceGetCartResult) BLength() int
- func (p *CartServiceGetCartResult) DeepEqual(ano *CartServiceGetCartResult) bool
- func (p *CartServiceGetCartResult) FastRead(buf []byte) (int, error)
- func (p *CartServiceGetCartResult) FastReadField0(buf []byte) (int, error)
- func (p *CartServiceGetCartResult) FastWrite(buf []byte) int
- func (p *CartServiceGetCartResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CartServiceGetCartResult) Field0DeepEqual(src *MallGetCartResponse) bool
- func (p *CartServiceGetCartResult) GetResult() interface{}
- func (p *CartServiceGetCartResult) GetSuccess() (v *MallGetCartResponse)
- func (p *CartServiceGetCartResult) InitDefault()
- func (p *CartServiceGetCartResult) IsSetSuccess() bool
- func (p *CartServiceGetCartResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CartServiceGetCartResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CartServiceGetCartResult) SetSuccess(x interface{})
- func (p *CartServiceGetCartResult) String() string
- func (p *CartServiceGetCartResult) Write(oprot thrift.TProtocol) (err error)
- type CartServiceProcessor
- func (p *CartServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *CartServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *CartServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *CartServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type MallAddProductToCartRequest
- func (p *MallAddProductToCartRequest) BLength() int
- func (p *MallAddProductToCartRequest) DeepEqual(ano *MallAddProductToCartRequest) bool
- func (p *MallAddProductToCartRequest) FastRead(buf []byte) (int, error)
- func (p *MallAddProductToCartRequest) FastReadField1(buf []byte) (int, error)
- func (p *MallAddProductToCartRequest) FastReadField2(buf []byte) (int, error)
- func (p *MallAddProductToCartRequest) FastReadField3(buf []byte) (int, error)
- func (p *MallAddProductToCartRequest) FastWrite(buf []byte) int
- func (p *MallAddProductToCartRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MallAddProductToCartRequest) Field1DeepEqual(src int64) bool
- func (p *MallAddProductToCartRequest) Field2DeepEqual(src int64) bool
- func (p *MallAddProductToCartRequest) Field3DeepEqual(src int64) bool
- func (p *MallAddProductToCartRequest) GetProductId() (v int64)
- func (p *MallAddProductToCartRequest) GetProductNum() (v int64)
- func (p *MallAddProductToCartRequest) GetUserId() (v int64)
- func (p *MallAddProductToCartRequest) InitDefault()
- func (p *MallAddProductToCartRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MallAddProductToCartRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MallAddProductToCartRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *MallAddProductToCartRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *MallAddProductToCartRequest) SetProductId(val int64)
- func (p *MallAddProductToCartRequest) SetProductNum(val int64)
- func (p *MallAddProductToCartRequest) SetUserId(val int64)
- func (p *MallAddProductToCartRequest) String() string
- func (p *MallAddProductToCartRequest) Write(oprot thrift.TProtocol) (err error)
- type MallAddProductToCartResponse
- func (p *MallAddProductToCartResponse) BLength() int
- func (p *MallAddProductToCartResponse) DeepEqual(ano *MallAddProductToCartResponse) bool
- func (p *MallAddProductToCartResponse) FastRead(buf []byte) (int, error)
- func (p *MallAddProductToCartResponse) FastReadField1(buf []byte) (int, error)
- func (p *MallAddProductToCartResponse) FastWrite(buf []byte) int
- func (p *MallAddProductToCartResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MallAddProductToCartResponse) Field1DeepEqual(src *common.CommonResponse) bool
- func (p *MallAddProductToCartResponse) GetCommonResp() (v *common.CommonResponse)
- func (p *MallAddProductToCartResponse) InitDefault()
- func (p *MallAddProductToCartResponse) IsSetCommonResp() bool
- func (p *MallAddProductToCartResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MallAddProductToCartResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MallAddProductToCartResponse) SetCommonResp(val *common.CommonResponse)
- func (p *MallAddProductToCartResponse) String() string
- func (p *MallAddProductToCartResponse) Write(oprot thrift.TProtocol) (err error)
- type MallDelCartProductRequest
- func (p *MallDelCartProductRequest) BLength() int
- func (p *MallDelCartProductRequest) DeepEqual(ano *MallDelCartProductRequest) bool
- func (p *MallDelCartProductRequest) FastRead(buf []byte) (int, error)
- func (p *MallDelCartProductRequest) FastReadField1(buf []byte) (int, error)
- func (p *MallDelCartProductRequest) FastReadField2(buf []byte) (int, error)
- func (p *MallDelCartProductRequest) FastWrite(buf []byte) int
- func (p *MallDelCartProductRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MallDelCartProductRequest) Field1DeepEqual(src int64) bool
- func (p *MallDelCartProductRequest) Field2DeepEqual(src int64) bool
- func (p *MallDelCartProductRequest) GetProductId() (v int64)
- func (p *MallDelCartProductRequest) GetUserId() (v int64)
- func (p *MallDelCartProductRequest) InitDefault()
- func (p *MallDelCartProductRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MallDelCartProductRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MallDelCartProductRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *MallDelCartProductRequest) SetProductId(val int64)
- func (p *MallDelCartProductRequest) SetUserId(val int64)
- func (p *MallDelCartProductRequest) String() string
- func (p *MallDelCartProductRequest) Write(oprot thrift.TProtocol) (err error)
- type MallDelCartProductResponse
- func (p *MallDelCartProductResponse) BLength() int
- func (p *MallDelCartProductResponse) DeepEqual(ano *MallDelCartProductResponse) bool
- func (p *MallDelCartProductResponse) FastRead(buf []byte) (int, error)
- func (p *MallDelCartProductResponse) FastReadField1(buf []byte) (int, error)
- func (p *MallDelCartProductResponse) FastWrite(buf []byte) int
- func (p *MallDelCartProductResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MallDelCartProductResponse) Field1DeepEqual(src *common.CommonResponse) bool
- func (p *MallDelCartProductResponse) GetCommonResp() (v *common.CommonResponse)
- func (p *MallDelCartProductResponse) InitDefault()
- func (p *MallDelCartProductResponse) IsSetCommonResp() bool
- func (p *MallDelCartProductResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MallDelCartProductResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MallDelCartProductResponse) SetCommonResp(val *common.CommonResponse)
- func (p *MallDelCartProductResponse) String() string
- func (p *MallDelCartProductResponse) Write(oprot thrift.TProtocol) (err error)
- type MallGetCartRequest
- func (p *MallGetCartRequest) BLength() int
- func (p *MallGetCartRequest) DeepEqual(ano *MallGetCartRequest) bool
- func (p *MallGetCartRequest) FastRead(buf []byte) (int, error)
- func (p *MallGetCartRequest) FastReadField1(buf []byte) (int, error)
- func (p *MallGetCartRequest) FastWrite(buf []byte) int
- func (p *MallGetCartRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MallGetCartRequest) Field1DeepEqual(src int64) bool
- func (p *MallGetCartRequest) GetUserId() (v int64)
- func (p *MallGetCartRequest) InitDefault()
- func (p *MallGetCartRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MallGetCartRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MallGetCartRequest) SetUserId(val int64)
- func (p *MallGetCartRequest) String() string
- func (p *MallGetCartRequest) Write(oprot thrift.TProtocol) (err error)
- type MallGetCartResponse
- func (p *MallGetCartResponse) BLength() int
- func (p *MallGetCartResponse) DeepEqual(ano *MallGetCartResponse) bool
- func (p *MallGetCartResponse) FastRead(buf []byte) (int, error)
- func (p *MallGetCartResponse) FastReadField1(buf []byte) (int, error)
- func (p *MallGetCartResponse) FastReadField2(buf []byte) (int, error)
- func (p *MallGetCartResponse) FastWrite(buf []byte) int
- func (p *MallGetCartResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MallGetCartResponse) Field1DeepEqual(src *common.CommonResponse) bool
- func (p *MallGetCartResponse) Field2DeepEqual(src *common.Cart) bool
- func (p *MallGetCartResponse) GetCart() (v *common.Cart)
- func (p *MallGetCartResponse) GetCommonResp() (v *common.CommonResponse)
- func (p *MallGetCartResponse) InitDefault()
- func (p *MallGetCartResponse) IsSetCart() bool
- func (p *MallGetCartResponse) IsSetCommonResp() bool
- func (p *MallGetCartResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MallGetCartResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MallGetCartResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *MallGetCartResponse) SetCart(val *common.Cart)
- func (p *MallGetCartResponse) SetCommonResp(val *common.CommonResponse)
- func (p *MallGetCartResponse) String() string
- func (p *MallGetCartResponse) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var MallAddProductToCartResponse_CommonResp_DEFAULT *common.CommonResponse
View Source
var MallDelCartProductResponse_CommonResp_DEFAULT *common.CommonResponse
View Source
var MallGetCartResponse_Cart_DEFAULT *common.Cart
View Source
var MallGetCartResponse_CommonResp_DEFAULT *common.CommonResponse
Functions ¶
This section is empty.
Types ¶
type CartService ¶
type CartService interface { AddProductToCart(ctx context.Context, req *MallAddProductToCartRequest) (r *MallAddProductToCartResponse, err error) GetCart(ctx context.Context, req *MallGetCartRequest) (r *MallGetCartResponse, err error) DelCartProduct(ctx context.Context, req *MallDelCartProductRequest) (r *MallDelCartProductResponse, err error) }
type CartServiceAddProductToCartArgs ¶
type CartServiceAddProductToCartArgs struct {
Req *MallAddProductToCartRequest `thrift:"req,1" frugal:"1,default,MallAddProductToCartRequest" json:"req"`
}
func NewCartServiceAddProductToCartArgs ¶
func NewCartServiceAddProductToCartArgs() *CartServiceAddProductToCartArgs
func (*CartServiceAddProductToCartArgs) BLength ¶
func (p *CartServiceAddProductToCartArgs) BLength() int
func (*CartServiceAddProductToCartArgs) DeepEqual ¶
func (p *CartServiceAddProductToCartArgs) DeepEqual(ano *CartServiceAddProductToCartArgs) bool
func (*CartServiceAddProductToCartArgs) FastRead ¶
func (p *CartServiceAddProductToCartArgs) FastRead(buf []byte) (int, error)
func (*CartServiceAddProductToCartArgs) FastReadField1 ¶
func (p *CartServiceAddProductToCartArgs) FastReadField1(buf []byte) (int, error)
func (*CartServiceAddProductToCartArgs) FastWrite ¶
func (p *CartServiceAddProductToCartArgs) FastWrite(buf []byte) int
for compatibility
func (*CartServiceAddProductToCartArgs) FastWriteNocopy ¶
func (p *CartServiceAddProductToCartArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CartServiceAddProductToCartArgs) Field1DeepEqual ¶
func (p *CartServiceAddProductToCartArgs) Field1DeepEqual(src *MallAddProductToCartRequest) bool
func (*CartServiceAddProductToCartArgs) GetFirstArgument ¶
func (p *CartServiceAddProductToCartArgs) GetFirstArgument() interface{}
func (*CartServiceAddProductToCartArgs) GetReq ¶
func (p *CartServiceAddProductToCartArgs) GetReq() (v *MallAddProductToCartRequest)
func (*CartServiceAddProductToCartArgs) InitDefault ¶
func (p *CartServiceAddProductToCartArgs) InitDefault()
func (*CartServiceAddProductToCartArgs) IsSetReq ¶
func (p *CartServiceAddProductToCartArgs) IsSetReq() bool
func (*CartServiceAddProductToCartArgs) Read ¶
func (p *CartServiceAddProductToCartArgs) Read(iprot thrift.TProtocol) (err error)
func (*CartServiceAddProductToCartArgs) ReadField1 ¶
func (p *CartServiceAddProductToCartArgs) ReadField1(iprot thrift.TProtocol) error
func (*CartServiceAddProductToCartArgs) SetReq ¶
func (p *CartServiceAddProductToCartArgs) SetReq(val *MallAddProductToCartRequest)
func (*CartServiceAddProductToCartArgs) String ¶
func (p *CartServiceAddProductToCartArgs) String() string
type CartServiceAddProductToCartResult ¶
type CartServiceAddProductToCartResult struct {
Success *MallAddProductToCartResponse `thrift:"success,0,optional" frugal:"0,optional,MallAddProductToCartResponse" json:"success,omitempty"`
}
func NewCartServiceAddProductToCartResult ¶
func NewCartServiceAddProductToCartResult() *CartServiceAddProductToCartResult
func (*CartServiceAddProductToCartResult) BLength ¶
func (p *CartServiceAddProductToCartResult) BLength() int
func (*CartServiceAddProductToCartResult) DeepEqual ¶
func (p *CartServiceAddProductToCartResult) DeepEqual(ano *CartServiceAddProductToCartResult) bool
func (*CartServiceAddProductToCartResult) FastRead ¶
func (p *CartServiceAddProductToCartResult) FastRead(buf []byte) (int, error)
func (*CartServiceAddProductToCartResult) FastReadField0 ¶
func (p *CartServiceAddProductToCartResult) FastReadField0(buf []byte) (int, error)
func (*CartServiceAddProductToCartResult) FastWrite ¶
func (p *CartServiceAddProductToCartResult) FastWrite(buf []byte) int
for compatibility
func (*CartServiceAddProductToCartResult) FastWriteNocopy ¶
func (p *CartServiceAddProductToCartResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CartServiceAddProductToCartResult) Field0DeepEqual ¶
func (p *CartServiceAddProductToCartResult) Field0DeepEqual(src *MallAddProductToCartResponse) bool
func (*CartServiceAddProductToCartResult) GetResult ¶
func (p *CartServiceAddProductToCartResult) GetResult() interface{}
func (*CartServiceAddProductToCartResult) GetSuccess ¶
func (p *CartServiceAddProductToCartResult) GetSuccess() (v *MallAddProductToCartResponse)
func (*CartServiceAddProductToCartResult) InitDefault ¶
func (p *CartServiceAddProductToCartResult) InitDefault()
func (*CartServiceAddProductToCartResult) IsSetSuccess ¶
func (p *CartServiceAddProductToCartResult) IsSetSuccess() bool
func (*CartServiceAddProductToCartResult) Read ¶
func (p *CartServiceAddProductToCartResult) Read(iprot thrift.TProtocol) (err error)
func (*CartServiceAddProductToCartResult) ReadField0 ¶
func (p *CartServiceAddProductToCartResult) ReadField0(iprot thrift.TProtocol) error
func (*CartServiceAddProductToCartResult) SetSuccess ¶
func (p *CartServiceAddProductToCartResult) SetSuccess(x interface{})
func (*CartServiceAddProductToCartResult) String ¶
func (p *CartServiceAddProductToCartResult) String() string
type CartServiceClient ¶
type CartServiceClient struct {
// contains filtered or unexported fields
}
func NewCartServiceClient ¶
func NewCartServiceClient(c thrift.TClient) *CartServiceClient
func NewCartServiceClientFactory ¶
func NewCartServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CartServiceClient
func NewCartServiceClientProtocol ¶
func NewCartServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CartServiceClient
func (*CartServiceClient) AddProductToCart ¶
func (p *CartServiceClient) AddProductToCart(ctx context.Context, req *MallAddProductToCartRequest) (r *MallAddProductToCartResponse, err error)
func (*CartServiceClient) Client_ ¶
func (p *CartServiceClient) Client_() thrift.TClient
func (*CartServiceClient) DelCartProduct ¶
func (p *CartServiceClient) DelCartProduct(ctx context.Context, req *MallDelCartProductRequest) (r *MallDelCartProductResponse, err error)
func (*CartServiceClient) GetCart ¶
func (p *CartServiceClient) GetCart(ctx context.Context, req *MallGetCartRequest) (r *MallGetCartResponse, err error)
type CartServiceDelCartProductArgs ¶
type CartServiceDelCartProductArgs struct {
Req *MallDelCartProductRequest `thrift:"req,1" frugal:"1,default,MallDelCartProductRequest" json:"req"`
}
func NewCartServiceDelCartProductArgs ¶
func NewCartServiceDelCartProductArgs() *CartServiceDelCartProductArgs
func (*CartServiceDelCartProductArgs) BLength ¶
func (p *CartServiceDelCartProductArgs) BLength() int
func (*CartServiceDelCartProductArgs) DeepEqual ¶
func (p *CartServiceDelCartProductArgs) DeepEqual(ano *CartServiceDelCartProductArgs) bool
func (*CartServiceDelCartProductArgs) FastRead ¶
func (p *CartServiceDelCartProductArgs) FastRead(buf []byte) (int, error)
func (*CartServiceDelCartProductArgs) FastReadField1 ¶
func (p *CartServiceDelCartProductArgs) FastReadField1(buf []byte) (int, error)
func (*CartServiceDelCartProductArgs) FastWrite ¶
func (p *CartServiceDelCartProductArgs) FastWrite(buf []byte) int
for compatibility
func (*CartServiceDelCartProductArgs) FastWriteNocopy ¶
func (p *CartServiceDelCartProductArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CartServiceDelCartProductArgs) Field1DeepEqual ¶
func (p *CartServiceDelCartProductArgs) Field1DeepEqual(src *MallDelCartProductRequest) bool
func (*CartServiceDelCartProductArgs) GetFirstArgument ¶
func (p *CartServiceDelCartProductArgs) GetFirstArgument() interface{}
func (*CartServiceDelCartProductArgs) GetReq ¶
func (p *CartServiceDelCartProductArgs) GetReq() (v *MallDelCartProductRequest)
func (*CartServiceDelCartProductArgs) InitDefault ¶
func (p *CartServiceDelCartProductArgs) InitDefault()
func (*CartServiceDelCartProductArgs) IsSetReq ¶
func (p *CartServiceDelCartProductArgs) IsSetReq() bool
func (*CartServiceDelCartProductArgs) Read ¶
func (p *CartServiceDelCartProductArgs) Read(iprot thrift.TProtocol) (err error)
func (*CartServiceDelCartProductArgs) ReadField1 ¶
func (p *CartServiceDelCartProductArgs) ReadField1(iprot thrift.TProtocol) error
func (*CartServiceDelCartProductArgs) SetReq ¶
func (p *CartServiceDelCartProductArgs) SetReq(val *MallDelCartProductRequest)
func (*CartServiceDelCartProductArgs) String ¶
func (p *CartServiceDelCartProductArgs) String() string
type CartServiceDelCartProductResult ¶
type CartServiceDelCartProductResult struct {
Success *MallDelCartProductResponse `thrift:"success,0,optional" frugal:"0,optional,MallDelCartProductResponse" json:"success,omitempty"`
}
func NewCartServiceDelCartProductResult ¶
func NewCartServiceDelCartProductResult() *CartServiceDelCartProductResult
func (*CartServiceDelCartProductResult) BLength ¶
func (p *CartServiceDelCartProductResult) BLength() int
func (*CartServiceDelCartProductResult) DeepEqual ¶
func (p *CartServiceDelCartProductResult) DeepEqual(ano *CartServiceDelCartProductResult) bool
func (*CartServiceDelCartProductResult) FastRead ¶
func (p *CartServiceDelCartProductResult) FastRead(buf []byte) (int, error)
func (*CartServiceDelCartProductResult) FastReadField0 ¶
func (p *CartServiceDelCartProductResult) FastReadField0(buf []byte) (int, error)
func (*CartServiceDelCartProductResult) FastWrite ¶
func (p *CartServiceDelCartProductResult) FastWrite(buf []byte) int
for compatibility
func (*CartServiceDelCartProductResult) FastWriteNocopy ¶
func (p *CartServiceDelCartProductResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CartServiceDelCartProductResult) Field0DeepEqual ¶
func (p *CartServiceDelCartProductResult) Field0DeepEqual(src *MallDelCartProductResponse) bool
func (*CartServiceDelCartProductResult) GetResult ¶
func (p *CartServiceDelCartProductResult) GetResult() interface{}
func (*CartServiceDelCartProductResult) GetSuccess ¶
func (p *CartServiceDelCartProductResult) GetSuccess() (v *MallDelCartProductResponse)
func (*CartServiceDelCartProductResult) InitDefault ¶
func (p *CartServiceDelCartProductResult) InitDefault()
func (*CartServiceDelCartProductResult) IsSetSuccess ¶
func (p *CartServiceDelCartProductResult) IsSetSuccess() bool
func (*CartServiceDelCartProductResult) Read ¶
func (p *CartServiceDelCartProductResult) Read(iprot thrift.TProtocol) (err error)
func (*CartServiceDelCartProductResult) ReadField0 ¶
func (p *CartServiceDelCartProductResult) ReadField0(iprot thrift.TProtocol) error
func (*CartServiceDelCartProductResult) SetSuccess ¶
func (p *CartServiceDelCartProductResult) SetSuccess(x interface{})
func (*CartServiceDelCartProductResult) String ¶
func (p *CartServiceDelCartProductResult) String() string
type CartServiceGetCartArgs ¶
type CartServiceGetCartArgs struct {
Req *MallGetCartRequest `thrift:"req,1" frugal:"1,default,MallGetCartRequest" json:"req"`
}
func NewCartServiceGetCartArgs ¶
func NewCartServiceGetCartArgs() *CartServiceGetCartArgs
func (*CartServiceGetCartArgs) BLength ¶
func (p *CartServiceGetCartArgs) BLength() int
func (*CartServiceGetCartArgs) DeepEqual ¶
func (p *CartServiceGetCartArgs) DeepEqual(ano *CartServiceGetCartArgs) bool
func (*CartServiceGetCartArgs) FastRead ¶
func (p *CartServiceGetCartArgs) FastRead(buf []byte) (int, error)
func (*CartServiceGetCartArgs) FastReadField1 ¶
func (p *CartServiceGetCartArgs) FastReadField1(buf []byte) (int, error)
func (*CartServiceGetCartArgs) FastWrite ¶
func (p *CartServiceGetCartArgs) FastWrite(buf []byte) int
for compatibility
func (*CartServiceGetCartArgs) FastWriteNocopy ¶
func (p *CartServiceGetCartArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CartServiceGetCartArgs) Field1DeepEqual ¶
func (p *CartServiceGetCartArgs) Field1DeepEqual(src *MallGetCartRequest) bool
func (*CartServiceGetCartArgs) GetFirstArgument ¶
func (p *CartServiceGetCartArgs) GetFirstArgument() interface{}
func (*CartServiceGetCartArgs) GetReq ¶
func (p *CartServiceGetCartArgs) GetReq() (v *MallGetCartRequest)
func (*CartServiceGetCartArgs) InitDefault ¶
func (p *CartServiceGetCartArgs) InitDefault()
func (*CartServiceGetCartArgs) IsSetReq ¶
func (p *CartServiceGetCartArgs) IsSetReq() bool
func (*CartServiceGetCartArgs) Read ¶
func (p *CartServiceGetCartArgs) Read(iprot thrift.TProtocol) (err error)
func (*CartServiceGetCartArgs) ReadField1 ¶
func (p *CartServiceGetCartArgs) ReadField1(iprot thrift.TProtocol) error
func (*CartServiceGetCartArgs) SetReq ¶
func (p *CartServiceGetCartArgs) SetReq(val *MallGetCartRequest)
func (*CartServiceGetCartArgs) String ¶
func (p *CartServiceGetCartArgs) String() string
type CartServiceGetCartResult ¶
type CartServiceGetCartResult struct {
Success *MallGetCartResponse `thrift:"success,0,optional" frugal:"0,optional,MallGetCartResponse" json:"success,omitempty"`
}
func NewCartServiceGetCartResult ¶
func NewCartServiceGetCartResult() *CartServiceGetCartResult
func (*CartServiceGetCartResult) BLength ¶
func (p *CartServiceGetCartResult) BLength() int
func (*CartServiceGetCartResult) DeepEqual ¶
func (p *CartServiceGetCartResult) DeepEqual(ano *CartServiceGetCartResult) bool
func (*CartServiceGetCartResult) FastRead ¶
func (p *CartServiceGetCartResult) FastRead(buf []byte) (int, error)
func (*CartServiceGetCartResult) FastReadField0 ¶
func (p *CartServiceGetCartResult) FastReadField0(buf []byte) (int, error)
func (*CartServiceGetCartResult) FastWrite ¶
func (p *CartServiceGetCartResult) FastWrite(buf []byte) int
for compatibility
func (*CartServiceGetCartResult) FastWriteNocopy ¶
func (p *CartServiceGetCartResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CartServiceGetCartResult) Field0DeepEqual ¶
func (p *CartServiceGetCartResult) Field0DeepEqual(src *MallGetCartResponse) bool
func (*CartServiceGetCartResult) GetResult ¶
func (p *CartServiceGetCartResult) GetResult() interface{}
func (*CartServiceGetCartResult) GetSuccess ¶
func (p *CartServiceGetCartResult) GetSuccess() (v *MallGetCartResponse)
func (*CartServiceGetCartResult) InitDefault ¶
func (p *CartServiceGetCartResult) InitDefault()
func (*CartServiceGetCartResult) IsSetSuccess ¶
func (p *CartServiceGetCartResult) IsSetSuccess() bool
func (*CartServiceGetCartResult) Read ¶
func (p *CartServiceGetCartResult) Read(iprot thrift.TProtocol) (err error)
func (*CartServiceGetCartResult) ReadField0 ¶
func (p *CartServiceGetCartResult) ReadField0(iprot thrift.TProtocol) error
func (*CartServiceGetCartResult) SetSuccess ¶
func (p *CartServiceGetCartResult) SetSuccess(x interface{})
func (*CartServiceGetCartResult) String ¶
func (p *CartServiceGetCartResult) String() string
type CartServiceProcessor ¶
type CartServiceProcessor struct {
// contains filtered or unexported fields
}
func NewCartServiceProcessor ¶
func NewCartServiceProcessor(handler CartService) *CartServiceProcessor
func (*CartServiceProcessor) AddToProcessorMap ¶
func (p *CartServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*CartServiceProcessor) GetProcessorFunction ¶
func (p *CartServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*CartServiceProcessor) Process ¶
func (p *CartServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*CartServiceProcessor) ProcessorMap ¶
func (p *CartServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type MallAddProductToCartRequest ¶
type MallAddProductToCartRequest struct { UserId int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"` ProductId int64 `thrift:"product_id,2" frugal:"2,default,i64" json:"product_id"` ProductNum int64 `thrift:"product_num,3" frugal:"3,default,i64" json:"product_num"` }
var CartServiceAddProductToCartArgs_Req_DEFAULT *MallAddProductToCartRequest
func NewMallAddProductToCartRequest ¶
func NewMallAddProductToCartRequest() *MallAddProductToCartRequest
func (*MallAddProductToCartRequest) BLength ¶
func (p *MallAddProductToCartRequest) BLength() int
func (*MallAddProductToCartRequest) DeepEqual ¶
func (p *MallAddProductToCartRequest) DeepEqual(ano *MallAddProductToCartRequest) bool
func (*MallAddProductToCartRequest) FastRead ¶
func (p *MallAddProductToCartRequest) FastRead(buf []byte) (int, error)
func (*MallAddProductToCartRequest) FastReadField1 ¶
func (p *MallAddProductToCartRequest) FastReadField1(buf []byte) (int, error)
func (*MallAddProductToCartRequest) FastReadField2 ¶
func (p *MallAddProductToCartRequest) FastReadField2(buf []byte) (int, error)
func (*MallAddProductToCartRequest) FastReadField3 ¶
func (p *MallAddProductToCartRequest) FastReadField3(buf []byte) (int, error)
func (*MallAddProductToCartRequest) FastWrite ¶
func (p *MallAddProductToCartRequest) FastWrite(buf []byte) int
for compatibility
func (*MallAddProductToCartRequest) FastWriteNocopy ¶
func (p *MallAddProductToCartRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MallAddProductToCartRequest) Field1DeepEqual ¶
func (p *MallAddProductToCartRequest) Field1DeepEqual(src int64) bool
func (*MallAddProductToCartRequest) Field2DeepEqual ¶
func (p *MallAddProductToCartRequest) Field2DeepEqual(src int64) bool
func (*MallAddProductToCartRequest) Field3DeepEqual ¶
func (p *MallAddProductToCartRequest) Field3DeepEqual(src int64) bool
func (*MallAddProductToCartRequest) GetProductId ¶
func (p *MallAddProductToCartRequest) GetProductId() (v int64)
func (*MallAddProductToCartRequest) GetProductNum ¶
func (p *MallAddProductToCartRequest) GetProductNum() (v int64)
func (*MallAddProductToCartRequest) GetUserId ¶
func (p *MallAddProductToCartRequest) GetUserId() (v int64)
func (*MallAddProductToCartRequest) InitDefault ¶
func (p *MallAddProductToCartRequest) InitDefault()
func (*MallAddProductToCartRequest) Read ¶
func (p *MallAddProductToCartRequest) Read(iprot thrift.TProtocol) (err error)
func (*MallAddProductToCartRequest) ReadField1 ¶
func (p *MallAddProductToCartRequest) ReadField1(iprot thrift.TProtocol) error
func (*MallAddProductToCartRequest) ReadField2 ¶
func (p *MallAddProductToCartRequest) ReadField2(iprot thrift.TProtocol) error
func (*MallAddProductToCartRequest) ReadField3 ¶
func (p *MallAddProductToCartRequest) ReadField3(iprot thrift.TProtocol) error
func (*MallAddProductToCartRequest) SetProductId ¶
func (p *MallAddProductToCartRequest) SetProductId(val int64)
func (*MallAddProductToCartRequest) SetProductNum ¶
func (p *MallAddProductToCartRequest) SetProductNum(val int64)
func (*MallAddProductToCartRequest) SetUserId ¶
func (p *MallAddProductToCartRequest) SetUserId(val int64)
func (*MallAddProductToCartRequest) String ¶
func (p *MallAddProductToCartRequest) String() string
type MallAddProductToCartResponse ¶
type MallAddProductToCartResponse struct {
CommonResp *common.CommonResponse `thrift:"common_resp,1" frugal:"1,default,common.CommonResponse" json:"common_resp"`
}
var CartServiceAddProductToCartResult_Success_DEFAULT *MallAddProductToCartResponse
func NewMallAddProductToCartResponse ¶
func NewMallAddProductToCartResponse() *MallAddProductToCartResponse
func (*MallAddProductToCartResponse) BLength ¶
func (p *MallAddProductToCartResponse) BLength() int
func (*MallAddProductToCartResponse) DeepEqual ¶
func (p *MallAddProductToCartResponse) DeepEqual(ano *MallAddProductToCartResponse) bool
func (*MallAddProductToCartResponse) FastRead ¶
func (p *MallAddProductToCartResponse) FastRead(buf []byte) (int, error)
func (*MallAddProductToCartResponse) FastReadField1 ¶
func (p *MallAddProductToCartResponse) FastReadField1(buf []byte) (int, error)
func (*MallAddProductToCartResponse) FastWrite ¶
func (p *MallAddProductToCartResponse) FastWrite(buf []byte) int
for compatibility
func (*MallAddProductToCartResponse) FastWriteNocopy ¶
func (p *MallAddProductToCartResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MallAddProductToCartResponse) Field1DeepEqual ¶
func (p *MallAddProductToCartResponse) Field1DeepEqual(src *common.CommonResponse) bool
func (*MallAddProductToCartResponse) GetCommonResp ¶
func (p *MallAddProductToCartResponse) GetCommonResp() (v *common.CommonResponse)
func (*MallAddProductToCartResponse) InitDefault ¶
func (p *MallAddProductToCartResponse) InitDefault()
func (*MallAddProductToCartResponse) IsSetCommonResp ¶
func (p *MallAddProductToCartResponse) IsSetCommonResp() bool
func (*MallAddProductToCartResponse) Read ¶
func (p *MallAddProductToCartResponse) Read(iprot thrift.TProtocol) (err error)
func (*MallAddProductToCartResponse) ReadField1 ¶
func (p *MallAddProductToCartResponse) ReadField1(iprot thrift.TProtocol) error
func (*MallAddProductToCartResponse) SetCommonResp ¶
func (p *MallAddProductToCartResponse) SetCommonResp(val *common.CommonResponse)
func (*MallAddProductToCartResponse) String ¶
func (p *MallAddProductToCartResponse) String() string
type MallDelCartProductRequest ¶
type MallDelCartProductRequest struct { UserId int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"` ProductId int64 `thrift:"product_id,2" frugal:"2,default,i64" json:"product_id"` }
var CartServiceDelCartProductArgs_Req_DEFAULT *MallDelCartProductRequest
func NewMallDelCartProductRequest ¶
func NewMallDelCartProductRequest() *MallDelCartProductRequest
func (*MallDelCartProductRequest) BLength ¶
func (p *MallDelCartProductRequest) BLength() int
func (*MallDelCartProductRequest) DeepEqual ¶
func (p *MallDelCartProductRequest) DeepEqual(ano *MallDelCartProductRequest) bool
func (*MallDelCartProductRequest) FastRead ¶
func (p *MallDelCartProductRequest) FastRead(buf []byte) (int, error)
func (*MallDelCartProductRequest) FastReadField1 ¶
func (p *MallDelCartProductRequest) FastReadField1(buf []byte) (int, error)
func (*MallDelCartProductRequest) FastReadField2 ¶
func (p *MallDelCartProductRequest) FastReadField2(buf []byte) (int, error)
func (*MallDelCartProductRequest) FastWrite ¶
func (p *MallDelCartProductRequest) FastWrite(buf []byte) int
for compatibility
func (*MallDelCartProductRequest) FastWriteNocopy ¶
func (p *MallDelCartProductRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MallDelCartProductRequest) Field1DeepEqual ¶
func (p *MallDelCartProductRequest) Field1DeepEqual(src int64) bool
func (*MallDelCartProductRequest) Field2DeepEqual ¶
func (p *MallDelCartProductRequest) Field2DeepEqual(src int64) bool
func (*MallDelCartProductRequest) GetProductId ¶
func (p *MallDelCartProductRequest) GetProductId() (v int64)
func (*MallDelCartProductRequest) GetUserId ¶
func (p *MallDelCartProductRequest) GetUserId() (v int64)
func (*MallDelCartProductRequest) InitDefault ¶
func (p *MallDelCartProductRequest) InitDefault()
func (*MallDelCartProductRequest) Read ¶
func (p *MallDelCartProductRequest) Read(iprot thrift.TProtocol) (err error)
func (*MallDelCartProductRequest) ReadField1 ¶
func (p *MallDelCartProductRequest) ReadField1(iprot thrift.TProtocol) error
func (*MallDelCartProductRequest) ReadField2 ¶
func (p *MallDelCartProductRequest) ReadField2(iprot thrift.TProtocol) error
func (*MallDelCartProductRequest) SetProductId ¶
func (p *MallDelCartProductRequest) SetProductId(val int64)
func (*MallDelCartProductRequest) SetUserId ¶
func (p *MallDelCartProductRequest) SetUserId(val int64)
func (*MallDelCartProductRequest) String ¶
func (p *MallDelCartProductRequest) String() string
type MallDelCartProductResponse ¶
type MallDelCartProductResponse struct {
CommonResp *common.CommonResponse `thrift:"common_resp,1" frugal:"1,default,common.CommonResponse" json:"common_resp"`
}
var CartServiceDelCartProductResult_Success_DEFAULT *MallDelCartProductResponse
func NewMallDelCartProductResponse ¶
func NewMallDelCartProductResponse() *MallDelCartProductResponse
func (*MallDelCartProductResponse) BLength ¶
func (p *MallDelCartProductResponse) BLength() int
func (*MallDelCartProductResponse) DeepEqual ¶
func (p *MallDelCartProductResponse) DeepEqual(ano *MallDelCartProductResponse) bool
func (*MallDelCartProductResponse) FastRead ¶
func (p *MallDelCartProductResponse) FastRead(buf []byte) (int, error)
func (*MallDelCartProductResponse) FastReadField1 ¶
func (p *MallDelCartProductResponse) FastReadField1(buf []byte) (int, error)
func (*MallDelCartProductResponse) FastWrite ¶
func (p *MallDelCartProductResponse) FastWrite(buf []byte) int
for compatibility
func (*MallDelCartProductResponse) FastWriteNocopy ¶
func (p *MallDelCartProductResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MallDelCartProductResponse) Field1DeepEqual ¶
func (p *MallDelCartProductResponse) Field1DeepEqual(src *common.CommonResponse) bool
func (*MallDelCartProductResponse) GetCommonResp ¶
func (p *MallDelCartProductResponse) GetCommonResp() (v *common.CommonResponse)
func (*MallDelCartProductResponse) InitDefault ¶
func (p *MallDelCartProductResponse) InitDefault()
func (*MallDelCartProductResponse) IsSetCommonResp ¶
func (p *MallDelCartProductResponse) IsSetCommonResp() bool
func (*MallDelCartProductResponse) Read ¶
func (p *MallDelCartProductResponse) Read(iprot thrift.TProtocol) (err error)
func (*MallDelCartProductResponse) ReadField1 ¶
func (p *MallDelCartProductResponse) ReadField1(iprot thrift.TProtocol) error
func (*MallDelCartProductResponse) SetCommonResp ¶
func (p *MallDelCartProductResponse) SetCommonResp(val *common.CommonResponse)
func (*MallDelCartProductResponse) String ¶
func (p *MallDelCartProductResponse) String() string
type MallGetCartRequest ¶
type MallGetCartRequest struct {
UserId int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"`
}
var CartServiceGetCartArgs_Req_DEFAULT *MallGetCartRequest
func NewMallGetCartRequest ¶
func NewMallGetCartRequest() *MallGetCartRequest
func (*MallGetCartRequest) BLength ¶
func (p *MallGetCartRequest) BLength() int
func (*MallGetCartRequest) DeepEqual ¶
func (p *MallGetCartRequest) DeepEqual(ano *MallGetCartRequest) bool
func (*MallGetCartRequest) FastRead ¶
func (p *MallGetCartRequest) FastRead(buf []byte) (int, error)
func (*MallGetCartRequest) FastReadField1 ¶
func (p *MallGetCartRequest) FastReadField1(buf []byte) (int, error)
func (*MallGetCartRequest) FastWrite ¶
func (p *MallGetCartRequest) FastWrite(buf []byte) int
for compatibility
func (*MallGetCartRequest) FastWriteNocopy ¶
func (p *MallGetCartRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MallGetCartRequest) Field1DeepEqual ¶
func (p *MallGetCartRequest) Field1DeepEqual(src int64) bool
func (*MallGetCartRequest) GetUserId ¶
func (p *MallGetCartRequest) GetUserId() (v int64)
func (*MallGetCartRequest) InitDefault ¶
func (p *MallGetCartRequest) InitDefault()
func (*MallGetCartRequest) Read ¶
func (p *MallGetCartRequest) Read(iprot thrift.TProtocol) (err error)
func (*MallGetCartRequest) ReadField1 ¶
func (p *MallGetCartRequest) ReadField1(iprot thrift.TProtocol) error
func (*MallGetCartRequest) SetUserId ¶
func (p *MallGetCartRequest) SetUserId(val int64)
func (*MallGetCartRequest) String ¶
func (p *MallGetCartRequest) String() string
type MallGetCartResponse ¶
type MallGetCartResponse struct { CommonResp *common.CommonResponse `thrift:"common_resp,1" frugal:"1,default,common.CommonResponse" json:"common_resp"` Cart *common.Cart `thrift:"cart,2" frugal:"2,default,common.Cart" json:"cart"` }
var CartServiceGetCartResult_Success_DEFAULT *MallGetCartResponse
func NewMallGetCartResponse ¶
func NewMallGetCartResponse() *MallGetCartResponse
func (*MallGetCartResponse) BLength ¶
func (p *MallGetCartResponse) BLength() int
func (*MallGetCartResponse) DeepEqual ¶
func (p *MallGetCartResponse) DeepEqual(ano *MallGetCartResponse) bool
func (*MallGetCartResponse) FastRead ¶
func (p *MallGetCartResponse) FastRead(buf []byte) (int, error)
func (*MallGetCartResponse) FastReadField1 ¶
func (p *MallGetCartResponse) FastReadField1(buf []byte) (int, error)
func (*MallGetCartResponse) FastReadField2 ¶
func (p *MallGetCartResponse) FastReadField2(buf []byte) (int, error)
func (*MallGetCartResponse) FastWrite ¶
func (p *MallGetCartResponse) FastWrite(buf []byte) int
for compatibility
func (*MallGetCartResponse) FastWriteNocopy ¶
func (p *MallGetCartResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MallGetCartResponse) Field1DeepEqual ¶
func (p *MallGetCartResponse) Field1DeepEqual(src *common.CommonResponse) bool
func (*MallGetCartResponse) Field2DeepEqual ¶
func (p *MallGetCartResponse) Field2DeepEqual(src *common.Cart) bool
func (*MallGetCartResponse) GetCart ¶
func (p *MallGetCartResponse) GetCart() (v *common.Cart)
func (*MallGetCartResponse) GetCommonResp ¶
func (p *MallGetCartResponse) GetCommonResp() (v *common.CommonResponse)
func (*MallGetCartResponse) InitDefault ¶
func (p *MallGetCartResponse) InitDefault()
func (*MallGetCartResponse) IsSetCart ¶
func (p *MallGetCartResponse) IsSetCart() bool
func (*MallGetCartResponse) IsSetCommonResp ¶
func (p *MallGetCartResponse) IsSetCommonResp() bool
func (*MallGetCartResponse) Read ¶
func (p *MallGetCartResponse) Read(iprot thrift.TProtocol) (err error)
func (*MallGetCartResponse) ReadField1 ¶
func (p *MallGetCartResponse) ReadField1(iprot thrift.TProtocol) error
func (*MallGetCartResponse) ReadField2 ¶
func (p *MallGetCartResponse) ReadField2(iprot thrift.TProtocol) error
func (*MallGetCartResponse) SetCart ¶
func (p *MallGetCartResponse) SetCart(val *common.Cart)
func (*MallGetCartResponse) SetCommonResp ¶
func (p *MallGetCartResponse) SetCommonResp(val *common.CommonResponse)
func (*MallGetCartResponse) String ¶
func (p *MallGetCartResponse) String() string
Click to show internal directories.
Click to hide internal directories.