common

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type Cart

type Cart struct {
	CartProducts []*CartProduct `thrift:"cart_products,1" frugal:"1,default,list<CartProduct>" json:"cart_products"`
}

func NewCart

func NewCart() *Cart

func (*Cart) BLength

func (p *Cart) BLength() int

func (*Cart) DeepEqual

func (p *Cart) DeepEqual(ano *Cart) bool

func (*Cart) FastRead

func (p *Cart) FastRead(buf []byte) (int, error)

func (*Cart) FastReadField1

func (p *Cart) FastReadField1(buf []byte) (int, error)

func (*Cart) FastWrite

func (p *Cart) FastWrite(buf []byte) int

for compatibility

func (*Cart) FastWriteNocopy

func (p *Cart) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Cart) Field1DeepEqual

func (p *Cart) Field1DeepEqual(src []*CartProduct) bool

func (*Cart) GetCartProducts

func (p *Cart) GetCartProducts() (v []*CartProduct)

func (*Cart) InitDefault

func (p *Cart) InitDefault()

func (*Cart) Read

func (p *Cart) Read(iprot thrift.TProtocol) (err error)

func (*Cart) ReadField1

func (p *Cart) ReadField1(iprot thrift.TProtocol) error

func (*Cart) SetCartProducts

func (p *Cart) SetCartProducts(val []*CartProduct)

func (*Cart) String

func (p *Cart) String() string

func (*Cart) Write

func (p *Cart) Write(oprot thrift.TProtocol) (err error)

type CartProduct

type CartProduct struct {
	ProductId  int64 `thrift:"product_id,1" frugal:"1,default,i64" json:"product_id"`
	MerchantId int64 `thrift:"merchant_id,2" frugal:"2,default,i64" json:"merchant_id"`
	ProductNum int64 `thrift:"product_num,3" frugal:"3,default,i64" json:"product_num"`
	Amount     int64 `thrift:"amount,4" frugal:"4,default,i64" json:"amount"`
	AddTime    int64 `thrift:"add_time,5" frugal:"5,default,i64" json:"add_time"`
	IsInvalid  bool  `thrift:"is_invalid,6" frugal:"6,default,bool" json:"is_invalid"`
}

func NewCartProduct

func NewCartProduct() *CartProduct

func (*CartProduct) BLength

func (p *CartProduct) BLength() int

func (*CartProduct) DeepEqual

func (p *CartProduct) DeepEqual(ano *CartProduct) bool

func (*CartProduct) FastRead

func (p *CartProduct) FastRead(buf []byte) (int, error)

func (*CartProduct) FastReadField1

func (p *CartProduct) FastReadField1(buf []byte) (int, error)

func (*CartProduct) FastReadField2

func (p *CartProduct) FastReadField2(buf []byte) (int, error)

func (*CartProduct) FastReadField3

func (p *CartProduct) FastReadField3(buf []byte) (int, error)

func (*CartProduct) FastReadField4

func (p *CartProduct) FastReadField4(buf []byte) (int, error)

func (*CartProduct) FastReadField5

func (p *CartProduct) FastReadField5(buf []byte) (int, error)

func (*CartProduct) FastReadField6

func (p *CartProduct) FastReadField6(buf []byte) (int, error)

func (*CartProduct) FastWrite

func (p *CartProduct) FastWrite(buf []byte) int

for compatibility

func (*CartProduct) FastWriteNocopy

func (p *CartProduct) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CartProduct) Field1DeepEqual

func (p *CartProduct) Field1DeepEqual(src int64) bool

func (*CartProduct) Field2DeepEqual

func (p *CartProduct) Field2DeepEqual(src int64) bool

func (*CartProduct) Field3DeepEqual

func (p *CartProduct) Field3DeepEqual(src int64) bool

func (*CartProduct) Field4DeepEqual

func (p *CartProduct) Field4DeepEqual(src int64) bool

func (*CartProduct) Field5DeepEqual

func (p *CartProduct) Field5DeepEqual(src int64) bool

func (*CartProduct) Field6DeepEqual

func (p *CartProduct) Field6DeepEqual(src bool) bool

func (*CartProduct) GetAddTime

func (p *CartProduct) GetAddTime() (v int64)

func (*CartProduct) GetAmount

func (p *CartProduct) GetAmount() (v int64)

func (*CartProduct) GetIsInvalid

func (p *CartProduct) GetIsInvalid() (v bool)

func (*CartProduct) GetMerchantId

func (p *CartProduct) GetMerchantId() (v int64)

func (*CartProduct) GetProductId

func (p *CartProduct) GetProductId() (v int64)

func (*CartProduct) GetProductNum

func (p *CartProduct) GetProductNum() (v int64)

func (*CartProduct) InitDefault

func (p *CartProduct) InitDefault()

func (*CartProduct) Read

func (p *CartProduct) Read(iprot thrift.TProtocol) (err error)

func (*CartProduct) ReadField1

func (p *CartProduct) ReadField1(iprot thrift.TProtocol) error

func (*CartProduct) ReadField2

func (p *CartProduct) ReadField2(iprot thrift.TProtocol) error

func (*CartProduct) ReadField3

func (p *CartProduct) ReadField3(iprot thrift.TProtocol) error

func (*CartProduct) ReadField4

func (p *CartProduct) ReadField4(iprot thrift.TProtocol) error

func (*CartProduct) ReadField5

func (p *CartProduct) ReadField5(iprot thrift.TProtocol) error

func (*CartProduct) ReadField6

func (p *CartProduct) ReadField6(iprot thrift.TProtocol) error

func (*CartProduct) SetAddTime

func (p *CartProduct) SetAddTime(val int64)

func (*CartProduct) SetAmount

func (p *CartProduct) SetAmount(val int64)

func (*CartProduct) SetIsInvalid

func (p *CartProduct) SetIsInvalid(val bool)

func (*CartProduct) SetMerchantId

func (p *CartProduct) SetMerchantId(val int64)

func (*CartProduct) SetProductId

func (p *CartProduct) SetProductId(val int64)

func (*CartProduct) SetProductNum

func (p *CartProduct) SetProductNum(val int64)

func (*CartProduct) String

func (p *CartProduct) String() string

func (*CartProduct) Write

func (p *CartProduct) Write(oprot thrift.TProtocol) (err error)

type Comment

type Comment struct {
	Id         int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	User       *User  `thrift:"user,2" frugal:"2,default,User" json:"user"`
	Content    string `thrift:"content,3" frugal:"3,default,string" json:"content"`
	CreateData string `thrift:"create_data,4" frugal:"4,default,string" json:"create_data"`
}

func NewComment

func NewComment() *Comment

func (*Comment) BLength

func (p *Comment) BLength() int

func (*Comment) DeepEqual

func (p *Comment) DeepEqual(ano *Comment) bool

func (*Comment) FastRead

func (p *Comment) FastRead(buf []byte) (int, error)

func (*Comment) FastReadField1

func (p *Comment) FastReadField1(buf []byte) (int, error)

func (*Comment) FastReadField2

func (p *Comment) FastReadField2(buf []byte) (int, error)

func (*Comment) FastReadField3

func (p *Comment) FastReadField3(buf []byte) (int, error)

func (*Comment) FastReadField4

func (p *Comment) FastReadField4(buf []byte) (int, error)

func (*Comment) FastWrite

func (p *Comment) FastWrite(buf []byte) int

for compatibility

func (*Comment) FastWriteNocopy

func (p *Comment) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Comment) Field1DeepEqual

func (p *Comment) Field1DeepEqual(src int64) bool

func (*Comment) Field2DeepEqual

func (p *Comment) Field2DeepEqual(src *User) bool

func (*Comment) Field3DeepEqual

func (p *Comment) Field3DeepEqual(src string) bool

func (*Comment) Field4DeepEqual

func (p *Comment) Field4DeepEqual(src string) bool

func (*Comment) GetContent

func (p *Comment) GetContent() (v string)

func (*Comment) GetCreateData

func (p *Comment) GetCreateData() (v string)

func (*Comment) GetId

func (p *Comment) GetId() (v int64)

func (*Comment) GetUser

func (p *Comment) GetUser() (v *User)

func (*Comment) InitDefault

func (p *Comment) InitDefault()

func (*Comment) IsSetUser

func (p *Comment) IsSetUser() bool

func (*Comment) Read

func (p *Comment) Read(iprot thrift.TProtocol) (err error)

func (*Comment) ReadField1

func (p *Comment) ReadField1(iprot thrift.TProtocol) error

func (*Comment) ReadField2

func (p *Comment) ReadField2(iprot thrift.TProtocol) error

func (*Comment) ReadField3

func (p *Comment) ReadField3(iprot thrift.TProtocol) error

func (*Comment) ReadField4

func (p *Comment) ReadField4(iprot thrift.TProtocol) error

func (*Comment) SetContent

func (p *Comment) SetContent(val string)

func (*Comment) SetCreateData

func (p *Comment) SetCreateData(val string)

func (*Comment) SetId

func (p *Comment) SetId(val int64)

func (*Comment) SetUser

func (p *Comment) SetUser(val *User)

func (*Comment) String

func (p *Comment) String() string

func (*Comment) Write

func (p *Comment) Write(oprot thrift.TProtocol) (err error)

type CommonResponse

type CommonResponse struct {
	Code int64  `thrift:"code,1" frugal:"1,default,i64" json:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" json:"msg"`
}

func NewCommonResponse

func NewCommonResponse() *CommonResponse

func (*CommonResponse) BLength

func (p *CommonResponse) BLength() int

func (*CommonResponse) DeepEqual

func (p *CommonResponse) DeepEqual(ano *CommonResponse) bool

func (*CommonResponse) FastRead

func (p *CommonResponse) FastRead(buf []byte) (int, error)

func (*CommonResponse) FastReadField1

func (p *CommonResponse) FastReadField1(buf []byte) (int, error)

func (*CommonResponse) FastReadField2

func (p *CommonResponse) FastReadField2(buf []byte) (int, error)

func (*CommonResponse) FastWrite

func (p *CommonResponse) FastWrite(buf []byte) int

for compatibility

func (*CommonResponse) FastWriteNocopy

func (p *CommonResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommonResponse) Field1DeepEqual

func (p *CommonResponse) Field1DeepEqual(src int64) bool

func (*CommonResponse) Field2DeepEqual

func (p *CommonResponse) Field2DeepEqual(src string) bool

func (*CommonResponse) GetCode

func (p *CommonResponse) GetCode() (v int64)

func (*CommonResponse) GetMsg

func (p *CommonResponse) GetMsg() (v string)

func (*CommonResponse) InitDefault

func (p *CommonResponse) InitDefault()

func (*CommonResponse) Read

func (p *CommonResponse) Read(iprot thrift.TProtocol) (err error)

func (*CommonResponse) ReadField1

func (p *CommonResponse) ReadField1(iprot thrift.TProtocol) error

func (*CommonResponse) ReadField2

func (p *CommonResponse) ReadField2(iprot thrift.TProtocol) error

func (*CommonResponse) SetCode

func (p *CommonResponse) SetCode(val int64)

func (*CommonResponse) SetMsg

func (p *CommonResponse) SetMsg(val string)

func (*CommonResponse) String

func (p *CommonResponse) String() string

func (*CommonResponse) Write

func (p *CommonResponse) Write(oprot thrift.TProtocol) (err error)

type Image

type Image struct {
	Id   int16  `thrift:"id,1" frugal:"1,default,i16" json:"id"`
	Path string `thrift:"path,2" frugal:"2,default,string" json:"path"`
}

func NewImage

func NewImage() *Image

func (*Image) BLength

func (p *Image) BLength() int

func (*Image) DeepEqual

func (p *Image) DeepEqual(ano *Image) bool

func (*Image) FastRead

func (p *Image) FastRead(buf []byte) (int, error)

func (*Image) FastReadField1

func (p *Image) FastReadField1(buf []byte) (int, error)

func (*Image) FastReadField2

func (p *Image) FastReadField2(buf []byte) (int, error)

func (*Image) FastWrite

func (p *Image) FastWrite(buf []byte) int

for compatibility

func (*Image) FastWriteNocopy

func (p *Image) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Image) Field1DeepEqual

func (p *Image) Field1DeepEqual(src int16) bool

func (*Image) Field2DeepEqual

func (p *Image) Field2DeepEqual(src string) bool

func (*Image) GetId

func (p *Image) GetId() (v int16)

func (*Image) GetPath

func (p *Image) GetPath() (v string)

func (*Image) InitDefault

func (p *Image) InitDefault()

func (*Image) Read

func (p *Image) Read(iprot thrift.TProtocol) (err error)

func (*Image) ReadField1

func (p *Image) ReadField1(iprot thrift.TProtocol) error

func (*Image) ReadField2

func (p *Image) ReadField2(iprot thrift.TProtocol) error

func (*Image) SetId

func (p *Image) SetId(val int16)

func (*Image) SetPath

func (p *Image) SetPath(val string)

func (*Image) String

func (p *Image) String() string

func (*Image) Write

func (p *Image) Write(oprot thrift.TProtocol) (err error)

type Merchant

type Merchant struct {
	Id          int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Alipay      int64  `thrift:"alipay,2" frugal:"2,default,i64" json:"alipay"`
	Name        string `thrift:"name,3" frugal:"3,default,string" json:"name"`
	Description string `thrift:"description,4" frugal:"4,default,string" json:"description"`
}
var ProductDetail_MerchantInfo_DEFAULT *Merchant

func NewMerchant

func NewMerchant() *Merchant

func (*Merchant) BLength

func (p *Merchant) BLength() int

func (*Merchant) DeepEqual

func (p *Merchant) DeepEqual(ano *Merchant) bool

func (*Merchant) FastRead

func (p *Merchant) FastRead(buf []byte) (int, error)

func (*Merchant) FastReadField1

func (p *Merchant) FastReadField1(buf []byte) (int, error)

func (*Merchant) FastReadField2

func (p *Merchant) FastReadField2(buf []byte) (int, error)

func (*Merchant) FastReadField3

func (p *Merchant) FastReadField3(buf []byte) (int, error)

func (*Merchant) FastReadField4

func (p *Merchant) FastReadField4(buf []byte) (int, error)

func (*Merchant) FastWrite

func (p *Merchant) FastWrite(buf []byte) int

for compatibility

func (*Merchant) FastWriteNocopy

func (p *Merchant) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Merchant) Field1DeepEqual

func (p *Merchant) Field1DeepEqual(src int64) bool

func (*Merchant) Field2DeepEqual

func (p *Merchant) Field2DeepEqual(src int64) bool

func (*Merchant) Field3DeepEqual

func (p *Merchant) Field3DeepEqual(src string) bool

func (*Merchant) Field4DeepEqual

func (p *Merchant) Field4DeepEqual(src string) bool

func (*Merchant) GetAlipay

func (p *Merchant) GetAlipay() (v int64)

func (*Merchant) GetDescription

func (p *Merchant) GetDescription() (v string)

func (*Merchant) GetId

func (p *Merchant) GetId() (v int64)

func (*Merchant) GetName

func (p *Merchant) GetName() (v string)

func (*Merchant) InitDefault

func (p *Merchant) InitDefault()

func (*Merchant) Read

func (p *Merchant) Read(iprot thrift.TProtocol) (err error)

func (*Merchant) ReadField1

func (p *Merchant) ReadField1(iprot thrift.TProtocol) error

func (*Merchant) ReadField2

func (p *Merchant) ReadField2(iprot thrift.TProtocol) error

func (*Merchant) ReadField3

func (p *Merchant) ReadField3(iprot thrift.TProtocol) error

func (*Merchant) ReadField4

func (p *Merchant) ReadField4(iprot thrift.TProtocol) error

func (*Merchant) SetAlipay

func (p *Merchant) SetAlipay(val int64)

func (*Merchant) SetDescription

func (p *Merchant) SetDescription(val string)

func (*Merchant) SetId

func (p *Merchant) SetId(val int64)

func (*Merchant) SetName

func (p *Merchant) SetName(val string)

func (*Merchant) String

func (p *Merchant) String() string

func (*Merchant) Write

func (p *Merchant) Write(oprot thrift.TProtocol) (err error)

type Order

type Order struct {
	OrderId    int64 `thrift:"order_id,1" frugal:"1,default,i64" json:"order_id"`
	UserId     int64 `thrift:"user_id,2" frugal:"2,default,i64" json:"user_id"`
	ProductId  int64 `thrift:"product_id,3" frugal:"3,default,i64" json:"product_id"`
	ProductNum int64 `thrift:"product_num,4" frugal:"4,default,i64" json:"product_num"`
	Amount     int64 `thrift:"amount,5" frugal:"5,default,i64" json:"amount"`
	Status     int8  `thrift:"status,6" frugal:"6,default,i8" json:"status"`
	CreateTime int64 `thrift:"create_time,7" frugal:"7,default,i64" json:"create_time"`
	UpdateTime int64 `thrift:"update_time,8" frugal:"8,default,i64" json:"update_time"`
	ExpTime    int64 `thrift:"exp_time,9" frugal:"9,default,i64" json:"exp_time"`
}

func NewOrder

func NewOrder() *Order

func (*Order) BLength

func (p *Order) BLength() int

func (*Order) DeepEqual

func (p *Order) DeepEqual(ano *Order) bool

func (*Order) FastRead

func (p *Order) FastRead(buf []byte) (int, error)

func (*Order) FastReadField1

func (p *Order) FastReadField1(buf []byte) (int, error)

func (*Order) FastReadField2

func (p *Order) FastReadField2(buf []byte) (int, error)

func (*Order) FastReadField3

func (p *Order) FastReadField3(buf []byte) (int, error)

func (*Order) FastReadField4

func (p *Order) FastReadField4(buf []byte) (int, error)

func (*Order) FastReadField5

func (p *Order) FastReadField5(buf []byte) (int, error)

func (*Order) FastReadField6

func (p *Order) FastReadField6(buf []byte) (int, error)

func (*Order) FastReadField7

func (p *Order) FastReadField7(buf []byte) (int, error)

func (*Order) FastReadField8

func (p *Order) FastReadField8(buf []byte) (int, error)

func (*Order) FastReadField9

func (p *Order) FastReadField9(buf []byte) (int, error)

func (*Order) FastWrite

func (p *Order) FastWrite(buf []byte) int

for compatibility

func (*Order) FastWriteNocopy

func (p *Order) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Order) Field1DeepEqual

func (p *Order) Field1DeepEqual(src int64) bool

func (*Order) Field2DeepEqual

func (p *Order) Field2DeepEqual(src int64) bool

func (*Order) Field3DeepEqual

func (p *Order) Field3DeepEqual(src int64) bool

func (*Order) Field4DeepEqual

func (p *Order) Field4DeepEqual(src int64) bool

func (*Order) Field5DeepEqual

func (p *Order) Field5DeepEqual(src int64) bool

func (*Order) Field6DeepEqual

func (p *Order) Field6DeepEqual(src int8) bool

func (*Order) Field7DeepEqual

func (p *Order) Field7DeepEqual(src int64) bool

func (*Order) Field8DeepEqual

func (p *Order) Field8DeepEqual(src int64) bool

func (*Order) Field9DeepEqual

func (p *Order) Field9DeepEqual(src int64) bool

func (*Order) GetAmount

func (p *Order) GetAmount() (v int64)

func (*Order) GetCreateTime

func (p *Order) GetCreateTime() (v int64)

func (*Order) GetExpTime

func (p *Order) GetExpTime() (v int64)

func (*Order) GetOrderId

func (p *Order) GetOrderId() (v int64)

func (*Order) GetProductId

func (p *Order) GetProductId() (v int64)

func (*Order) GetProductNum

func (p *Order) GetProductNum() (v int64)

func (*Order) GetStatus

func (p *Order) GetStatus() (v int8)

func (*Order) GetUpdateTime

func (p *Order) GetUpdateTime() (v int64)

func (*Order) GetUserId

func (p *Order) GetUserId() (v int64)

func (*Order) InitDefault

func (p *Order) InitDefault()

func (*Order) Read

func (p *Order) Read(iprot thrift.TProtocol) (err error)

func (*Order) ReadField1

func (p *Order) ReadField1(iprot thrift.TProtocol) error

func (*Order) ReadField2

func (p *Order) ReadField2(iprot thrift.TProtocol) error

func (*Order) ReadField3

func (p *Order) ReadField3(iprot thrift.TProtocol) error

func (*Order) ReadField4

func (p *Order) ReadField4(iprot thrift.TProtocol) error

func (*Order) ReadField5

func (p *Order) ReadField5(iprot thrift.TProtocol) error

func (*Order) ReadField6

func (p *Order) ReadField6(iprot thrift.TProtocol) error

func (*Order) ReadField7

func (p *Order) ReadField7(iprot thrift.TProtocol) error

func (*Order) ReadField8

func (p *Order) ReadField8(iprot thrift.TProtocol) error

func (*Order) ReadField9

func (p *Order) ReadField9(iprot thrift.TProtocol) error

func (*Order) SetAmount

func (p *Order) SetAmount(val int64)

func (*Order) SetCreateTime

func (p *Order) SetCreateTime(val int64)

func (*Order) SetExpTime

func (p *Order) SetExpTime(val int64)

func (*Order) SetOrderId

func (p *Order) SetOrderId(val int64)

func (*Order) SetProductId

func (p *Order) SetProductId(val int64)

func (*Order) SetProductNum

func (p *Order) SetProductNum(val int64)

func (*Order) SetStatus

func (p *Order) SetStatus(val int8)

func (*Order) SetUpdateTime

func (p *Order) SetUpdateTime(val int64)

func (*Order) SetUserId

func (p *Order) SetUserId(val int64)

func (*Order) String

func (p *Order) String() string

func (*Order) Write

func (p *Order) Write(oprot thrift.TProtocol) (err error)

type Pay

type Pay struct {
	PayId      int64  `thrift:"pay_id,1" frugal:"1,default,i64" json:"pay_id"`
	OrderId    int64  `thrift:"order_id,2" frugal:"2,default,i64" json:"order_id"`
	UserId     int64  `thrift:"user_id,3" frugal:"3,default,i64" json:"user_id"`
	Amount     int64  `thrift:"amount,4" frugal:"4,default,i64" json:"amount"`
	CreateTime int64  `thrift:"create_time,5" frugal:"5,default,i64" json:"create_time"`
	UpdateTime int64  `thrift:"update_time,6" frugal:"6,default,i64" json:"update_time"`
	Status     int8   `thrift:"status,7" frugal:"7,default,i8" json:"status"`
	Url        string `thrift:"url,8" frugal:"8,default,string" json:"url"`
}

func NewPay

func NewPay() *Pay

func (*Pay) BLength

func (p *Pay) BLength() int

func (*Pay) DeepEqual

func (p *Pay) DeepEqual(ano *Pay) bool

func (*Pay) FastRead

func (p *Pay) FastRead(buf []byte) (int, error)

func (*Pay) FastReadField1

func (p *Pay) FastReadField1(buf []byte) (int, error)

func (*Pay) FastReadField2

func (p *Pay) FastReadField2(buf []byte) (int, error)

func (*Pay) FastReadField3

func (p *Pay) FastReadField3(buf []byte) (int, error)

func (*Pay) FastReadField4

func (p *Pay) FastReadField4(buf []byte) (int, error)

func (*Pay) FastReadField5

func (p *Pay) FastReadField5(buf []byte) (int, error)

func (*Pay) FastReadField6

func (p *Pay) FastReadField6(buf []byte) (int, error)

func (*Pay) FastReadField7

func (p *Pay) FastReadField7(buf []byte) (int, error)

func (*Pay) FastReadField8

func (p *Pay) FastReadField8(buf []byte) (int, error)

func (*Pay) FastWrite

func (p *Pay) FastWrite(buf []byte) int

for compatibility

func (*Pay) FastWriteNocopy

func (p *Pay) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Pay) Field1DeepEqual

func (p *Pay) Field1DeepEqual(src int64) bool

func (*Pay) Field2DeepEqual

func (p *Pay) Field2DeepEqual(src int64) bool

func (*Pay) Field3DeepEqual

func (p *Pay) Field3DeepEqual(src int64) bool

func (*Pay) Field4DeepEqual

func (p *Pay) Field4DeepEqual(src int64) bool

func (*Pay) Field5DeepEqual

func (p *Pay) Field5DeepEqual(src int64) bool

func (*Pay) Field6DeepEqual

func (p *Pay) Field6DeepEqual(src int64) bool

func (*Pay) Field7DeepEqual

func (p *Pay) Field7DeepEqual(src int8) bool

func (*Pay) Field8DeepEqual

func (p *Pay) Field8DeepEqual(src string) bool

func (*Pay) GetAmount

func (p *Pay) GetAmount() (v int64)

func (*Pay) GetCreateTime

func (p *Pay) GetCreateTime() (v int64)

func (*Pay) GetOrderId

func (p *Pay) GetOrderId() (v int64)

func (*Pay) GetPayId

func (p *Pay) GetPayId() (v int64)

func (*Pay) GetStatus

func (p *Pay) GetStatus() (v int8)

func (*Pay) GetUpdateTime

func (p *Pay) GetUpdateTime() (v int64)

func (*Pay) GetUrl

func (p *Pay) GetUrl() (v string)

func (*Pay) GetUserId

func (p *Pay) GetUserId() (v int64)

func (*Pay) InitDefault

func (p *Pay) InitDefault()

func (*Pay) Read

func (p *Pay) Read(iprot thrift.TProtocol) (err error)

func (*Pay) ReadField1

func (p *Pay) ReadField1(iprot thrift.TProtocol) error

func (*Pay) ReadField2

func (p *Pay) ReadField2(iprot thrift.TProtocol) error

func (*Pay) ReadField3

func (p *Pay) ReadField3(iprot thrift.TProtocol) error

func (*Pay) ReadField4

func (p *Pay) ReadField4(iprot thrift.TProtocol) error

func (*Pay) ReadField5

func (p *Pay) ReadField5(iprot thrift.TProtocol) error

func (*Pay) ReadField6

func (p *Pay) ReadField6(iprot thrift.TProtocol) error

func (*Pay) ReadField7

func (p *Pay) ReadField7(iprot thrift.TProtocol) error

func (*Pay) ReadField8

func (p *Pay) ReadField8(iprot thrift.TProtocol) error

func (*Pay) SetAmount

func (p *Pay) SetAmount(val int64)

func (*Pay) SetCreateTime

func (p *Pay) SetCreateTime(val int64)

func (*Pay) SetOrderId

func (p *Pay) SetOrderId(val int64)

func (*Pay) SetPayId

func (p *Pay) SetPayId(val int64)

func (*Pay) SetStatus

func (p *Pay) SetStatus(val int8)

func (*Pay) SetUpdateTime

func (p *Pay) SetUpdateTime(val int64)

func (*Pay) SetUrl

func (p *Pay) SetUrl(val string)

func (*Pay) SetUserId

func (p *Pay) SetUserId(val int64)

func (*Pay) String

func (p *Pay) String() string

func (*Pay) Write

func (p *Pay) Write(oprot thrift.TProtocol) (err error)

type Product

type Product struct {
	Id          int64    `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	MId         int64    `thrift:"m_id,2" frugal:"2,default,i64" json:"m_id"`
	Price       int64    `thrift:"price,3" frugal:"3,default,i64" json:"price"`
	Name        string   `thrift:"name,4" frugal:"4,default,string" json:"name"`
	Description string   `thrift:"description,5" frugal:"5,default,string" json:"description"`
	Iamges      []*Image `thrift:"iamges,6" frugal:"6,default,list<Image>" json:"iamges"`
	Stock       int64    `thrift:"stock,7" frugal:"7,default,i64" json:"stock"`
	Status      int8     `thrift:"status,8" frugal:"8,default,i8" json:"status"`
}
var ProductDetail_BasicInfo_DEFAULT *Product

func NewProduct

func NewProduct() *Product

func (*Product) BLength

func (p *Product) BLength() int

func (*Product) DeepEqual

func (p *Product) DeepEqual(ano *Product) bool

func (*Product) FastRead

func (p *Product) FastRead(buf []byte) (int, error)

func (*Product) FastReadField1

func (p *Product) FastReadField1(buf []byte) (int, error)

func (*Product) FastReadField2

func (p *Product) FastReadField2(buf []byte) (int, error)

func (*Product) FastReadField3

func (p *Product) FastReadField3(buf []byte) (int, error)

func (*Product) FastReadField4

func (p *Product) FastReadField4(buf []byte) (int, error)

func (*Product) FastReadField5

func (p *Product) FastReadField5(buf []byte) (int, error)

func (*Product) FastReadField6

func (p *Product) FastReadField6(buf []byte) (int, error)

func (*Product) FastReadField7

func (p *Product) FastReadField7(buf []byte) (int, error)

func (*Product) FastReadField8

func (p *Product) FastReadField8(buf []byte) (int, error)

func (*Product) FastWrite

func (p *Product) FastWrite(buf []byte) int

for compatibility

func (*Product) FastWriteNocopy

func (p *Product) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Product) Field1DeepEqual

func (p *Product) Field1DeepEqual(src int64) bool

func (*Product) Field2DeepEqual

func (p *Product) Field2DeepEqual(src int64) bool

func (*Product) Field3DeepEqual

func (p *Product) Field3DeepEqual(src int64) bool

func (*Product) Field4DeepEqual

func (p *Product) Field4DeepEqual(src string) bool

func (*Product) Field5DeepEqual

func (p *Product) Field5DeepEqual(src string) bool

func (*Product) Field6DeepEqual

func (p *Product) Field6DeepEqual(src []*Image) bool

func (*Product) Field7DeepEqual

func (p *Product) Field7DeepEqual(src int64) bool

func (*Product) Field8DeepEqual

func (p *Product) Field8DeepEqual(src int8) bool

func (*Product) GetDescription

func (p *Product) GetDescription() (v string)

func (*Product) GetIamges

func (p *Product) GetIamges() (v []*Image)

func (*Product) GetId

func (p *Product) GetId() (v int64)

func (*Product) GetMId

func (p *Product) GetMId() (v int64)

func (*Product) GetName

func (p *Product) GetName() (v string)

func (*Product) GetPrice

func (p *Product) GetPrice() (v int64)

func (*Product) GetStatus

func (p *Product) GetStatus() (v int8)

func (*Product) GetStock

func (p *Product) GetStock() (v int64)

func (*Product) InitDefault

func (p *Product) InitDefault()

func (*Product) Read

func (p *Product) Read(iprot thrift.TProtocol) (err error)

func (*Product) ReadField1

func (p *Product) ReadField1(iprot thrift.TProtocol) error

func (*Product) ReadField2

func (p *Product) ReadField2(iprot thrift.TProtocol) error

func (*Product) ReadField3

func (p *Product) ReadField3(iprot thrift.TProtocol) error

func (*Product) ReadField4

func (p *Product) ReadField4(iprot thrift.TProtocol) error

func (*Product) ReadField5

func (p *Product) ReadField5(iprot thrift.TProtocol) error

func (*Product) ReadField6

func (p *Product) ReadField6(iprot thrift.TProtocol) error

func (*Product) ReadField7

func (p *Product) ReadField7(iprot thrift.TProtocol) error

func (*Product) ReadField8

func (p *Product) ReadField8(iprot thrift.TProtocol) error

func (*Product) SetDescription

func (p *Product) SetDescription(val string)

func (*Product) SetIamges

func (p *Product) SetIamges(val []*Image)

func (*Product) SetId

func (p *Product) SetId(val int64)

func (*Product) SetMId

func (p *Product) SetMId(val int64)

func (*Product) SetName

func (p *Product) SetName(val string)

func (*Product) SetPrice

func (p *Product) SetPrice(val int64)

func (*Product) SetStatus

func (p *Product) SetStatus(val int8)

func (*Product) SetStock

func (p *Product) SetStock(val int64)

func (*Product) String

func (p *Product) String() string

func (*Product) Write

func (p *Product) Write(oprot thrift.TProtocol) (err error)

type ProductDetail

type ProductDetail struct {
	BasicInfo    *Product            `thrift:"basic_info,1" frugal:"1,default,Product" json:"basic_info"`
	MerchantInfo *Merchant           `thrift:"merchant_info,2" frugal:"2,default,Merchant" json:"merchant_info"`
	OperateInfo  *ProductOperateInfo `thrift:"operate_info,3" frugal:"3,default,ProductOperateInfo" json:"operate_info"`
	CreateTime   int64               `thrift:"create_time,4" frugal:"4,default,i64" json:"create_time"`
	UpdateTime   int64               `thrift:"update_time,5" frugal:"5,default,i64" json:"update_time"`
}

func NewProductDetail

func NewProductDetail() *ProductDetail

func (*ProductDetail) BLength

func (p *ProductDetail) BLength() int

func (*ProductDetail) DeepEqual

func (p *ProductDetail) DeepEqual(ano *ProductDetail) bool

func (*ProductDetail) FastRead

func (p *ProductDetail) FastRead(buf []byte) (int, error)

func (*ProductDetail) FastReadField1

func (p *ProductDetail) FastReadField1(buf []byte) (int, error)

func (*ProductDetail) FastReadField2

func (p *ProductDetail) FastReadField2(buf []byte) (int, error)

func (*ProductDetail) FastReadField3

func (p *ProductDetail) FastReadField3(buf []byte) (int, error)

func (*ProductDetail) FastReadField4

func (p *ProductDetail) FastReadField4(buf []byte) (int, error)

func (*ProductDetail) FastReadField5

func (p *ProductDetail) FastReadField5(buf []byte) (int, error)

func (*ProductDetail) FastWrite

func (p *ProductDetail) FastWrite(buf []byte) int

for compatibility

func (*ProductDetail) FastWriteNocopy

func (p *ProductDetail) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*ProductDetail) Field1DeepEqual

func (p *ProductDetail) Field1DeepEqual(src *Product) bool

func (*ProductDetail) Field2DeepEqual

func (p *ProductDetail) Field2DeepEqual(src *Merchant) bool

func (*ProductDetail) Field3DeepEqual

func (p *ProductDetail) Field3DeepEqual(src *ProductOperateInfo) bool

func (*ProductDetail) Field4DeepEqual

func (p *ProductDetail) Field4DeepEqual(src int64) bool

func (*ProductDetail) Field5DeepEqual

func (p *ProductDetail) Field5DeepEqual(src int64) bool

func (*ProductDetail) GetBasicInfo

func (p *ProductDetail) GetBasicInfo() (v *Product)

func (*ProductDetail) GetCreateTime

func (p *ProductDetail) GetCreateTime() (v int64)

func (*ProductDetail) GetMerchantInfo

func (p *ProductDetail) GetMerchantInfo() (v *Merchant)

func (*ProductDetail) GetOperateInfo

func (p *ProductDetail) GetOperateInfo() (v *ProductOperateInfo)

func (*ProductDetail) GetUpdateTime

func (p *ProductDetail) GetUpdateTime() (v int64)

func (*ProductDetail) InitDefault

func (p *ProductDetail) InitDefault()

func (*ProductDetail) IsSetBasicInfo

func (p *ProductDetail) IsSetBasicInfo() bool

func (*ProductDetail) IsSetMerchantInfo

func (p *ProductDetail) IsSetMerchantInfo() bool

func (*ProductDetail) IsSetOperateInfo

func (p *ProductDetail) IsSetOperateInfo() bool

func (*ProductDetail) Read

func (p *ProductDetail) Read(iprot thrift.TProtocol) (err error)

func (*ProductDetail) ReadField1

func (p *ProductDetail) ReadField1(iprot thrift.TProtocol) error

func (*ProductDetail) ReadField2

func (p *ProductDetail) ReadField2(iprot thrift.TProtocol) error

func (*ProductDetail) ReadField3

func (p *ProductDetail) ReadField3(iprot thrift.TProtocol) error

func (*ProductDetail) ReadField4

func (p *ProductDetail) ReadField4(iprot thrift.TProtocol) error

func (*ProductDetail) ReadField5

func (p *ProductDetail) ReadField5(iprot thrift.TProtocol) error

func (*ProductDetail) SetBasicInfo

func (p *ProductDetail) SetBasicInfo(val *Product)

func (*ProductDetail) SetCreateTime

func (p *ProductDetail) SetCreateTime(val int64)

func (*ProductDetail) SetMerchantInfo

func (p *ProductDetail) SetMerchantInfo(val *Merchant)

func (*ProductDetail) SetOperateInfo

func (p *ProductDetail) SetOperateInfo(val *ProductOperateInfo)

func (*ProductDetail) SetUpdateTime

func (p *ProductDetail) SetUpdateTime(val int64)

func (*ProductDetail) String

func (p *ProductDetail) String() string

func (*ProductDetail) Write

func (p *ProductDetail) Write(oprot thrift.TProtocol) (err error)

type ProductOperateInfo

type ProductOperateInfo struct {
	SaleCount    int64 `thrift:"sale_count,1" frugal:"1,default,i64" json:"sale_count"`
	CommentCount int64 `thrift:"comment_count,2" frugal:"2,default,i64" json:"comment_count"`
	IsFavorite   bool  `thrift:"is_favorite,3" frugal:"3,default,bool" json:"is_favorite"`
}
var ProductDetail_OperateInfo_DEFAULT *ProductOperateInfo

func NewProductOperateInfo

func NewProductOperateInfo() *ProductOperateInfo

func (*ProductOperateInfo) BLength

func (p *ProductOperateInfo) BLength() int

func (*ProductOperateInfo) DeepEqual

func (p *ProductOperateInfo) DeepEqual(ano *ProductOperateInfo) bool

func (*ProductOperateInfo) FastRead

func (p *ProductOperateInfo) FastRead(buf []byte) (int, error)

func (*ProductOperateInfo) FastReadField1

func (p *ProductOperateInfo) FastReadField1(buf []byte) (int, error)

func (*ProductOperateInfo) FastReadField2

func (p *ProductOperateInfo) FastReadField2(buf []byte) (int, error)

func (*ProductOperateInfo) FastReadField3

func (p *ProductOperateInfo) FastReadField3(buf []byte) (int, error)

func (*ProductOperateInfo) FastWrite

func (p *ProductOperateInfo) FastWrite(buf []byte) int

for compatibility

func (*ProductOperateInfo) FastWriteNocopy

func (p *ProductOperateInfo) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*ProductOperateInfo) Field1DeepEqual

func (p *ProductOperateInfo) Field1DeepEqual(src int64) bool

func (*ProductOperateInfo) Field2DeepEqual

func (p *ProductOperateInfo) Field2DeepEqual(src int64) bool

func (*ProductOperateInfo) Field3DeepEqual

func (p *ProductOperateInfo) Field3DeepEqual(src bool) bool

func (*ProductOperateInfo) GetCommentCount

func (p *ProductOperateInfo) GetCommentCount() (v int64)

func (*ProductOperateInfo) GetIsFavorite

func (p *ProductOperateInfo) GetIsFavorite() (v bool)

func (*ProductOperateInfo) GetSaleCount

func (p *ProductOperateInfo) GetSaleCount() (v int64)

func (*ProductOperateInfo) InitDefault

func (p *ProductOperateInfo) InitDefault()

func (*ProductOperateInfo) Read

func (p *ProductOperateInfo) Read(iprot thrift.TProtocol) (err error)

func (*ProductOperateInfo) ReadField1

func (p *ProductOperateInfo) ReadField1(iprot thrift.TProtocol) error

func (*ProductOperateInfo) ReadField2

func (p *ProductOperateInfo) ReadField2(iprot thrift.TProtocol) error

func (*ProductOperateInfo) ReadField3

func (p *ProductOperateInfo) ReadField3(iprot thrift.TProtocol) error

func (*ProductOperateInfo) SetCommentCount

func (p *ProductOperateInfo) SetCommentCount(val int64)

func (*ProductOperateInfo) SetIsFavorite

func (p *ProductOperateInfo) SetIsFavorite(val bool)

func (*ProductOperateInfo) SetSaleCount

func (p *ProductOperateInfo) SetSaleCount(val int64)

func (*ProductOperateInfo) String

func (p *ProductOperateInfo) String() string

func (*ProductOperateInfo) Write

func (p *ProductOperateInfo) Write(oprot thrift.TProtocol) (err error)

type User

type User struct {
	Id         int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Name       string `thrift:"name,2" frugal:"2,default,string" json:"name"`
	Avatar     string `thrift:"avatar,3" frugal:"3,default,string" json:"avatar"`
	Background string `thrift:"background,4" frugal:"4,default,string" json:"background"`
	Signature  string `thrift:"signature,6" frugal:"6,default,string" json:"signature"`
}
var Comment_User_DEFAULT *User

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

func (p *User) DeepEqual(ano *User) bool

func (*User) FastRead

func (p *User) FastRead(buf []byte) (int, error)

func (*User) FastReadField1

func (p *User) FastReadField1(buf []byte) (int, error)

func (*User) FastReadField2

func (p *User) FastReadField2(buf []byte) (int, error)

func (*User) FastReadField3

func (p *User) FastReadField3(buf []byte) (int, error)

func (*User) FastReadField4

func (p *User) FastReadField4(buf []byte) (int, error)

func (*User) FastReadField6

func (p *User) FastReadField6(buf []byte) (int, error)

func (*User) FastWrite

func (p *User) FastWrite(buf []byte) int

for compatibility

func (*User) FastWriteNocopy

func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*User) Field1DeepEqual

func (p *User) Field1DeepEqual(src int64) bool

func (*User) Field2DeepEqual

func (p *User) Field2DeepEqual(src string) bool

func (*User) Field3DeepEqual

func (p *User) Field3DeepEqual(src string) bool

func (*User) Field4DeepEqual

func (p *User) Field4DeepEqual(src string) bool

func (*User) Field6DeepEqual

func (p *User) Field6DeepEqual(src string) bool

func (*User) GetAvatar

func (p *User) GetAvatar() (v string)

func (*User) GetBackground

func (p *User) GetBackground() (v string)

func (*User) GetId

func (p *User) GetId() (v int64)

func (*User) GetName

func (p *User) GetName() (v string)

func (*User) GetSignature

func (p *User) GetSignature() (v string)

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) Read

func (p *User) Read(iprot thrift.TProtocol) (err error)

func (*User) ReadField1

func (p *User) ReadField1(iprot thrift.TProtocol) error

func (*User) ReadField2

func (p *User) ReadField2(iprot thrift.TProtocol) error

func (*User) ReadField3

func (p *User) ReadField3(iprot thrift.TProtocol) error

func (*User) ReadField4

func (p *User) ReadField4(iprot thrift.TProtocol) error

func (*User) ReadField6

func (p *User) ReadField6(iprot thrift.TProtocol) error

func (*User) SetAvatar

func (p *User) SetAvatar(val string)

func (*User) SetBackground

func (p *User) SetBackground(val string)

func (*User) SetId

func (p *User) SetId(val int64)

func (*User) SetName

func (p *User) SetName(val string)

func (*User) SetSignature

func (p *User) SetSignature(val string)

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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