Documentation ¶
Index ¶
- type Comment
- func (p *Comment) GetContent() (v string)
- func (p *Comment) GetCreateData() (v string)
- func (p *Comment) GetID() (v int64)
- func (p *Comment) GetUser() (v *User)
- func (p *Comment) IsSetUser() bool
- func (p *Comment) Read(iprot thrift.TProtocol) (err error)
- func (p *Comment) ReadField1(iprot thrift.TProtocol) error
- func (p *Comment) ReadField2(iprot thrift.TProtocol) error
- func (p *Comment) ReadField3(iprot thrift.TProtocol) error
- func (p *Comment) ReadField4(iprot thrift.TProtocol) error
- func (p *Comment) String() string
- func (p *Comment) Write(oprot thrift.TProtocol) (err error)
- type CommonResponse
- func (p *CommonResponse) GetCode() (v int64)
- func (p *CommonResponse) GetMsg() (v string)
- func (p *CommonResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *CommonResponse) String() string
- func (p *CommonResponse) Write(oprot thrift.TProtocol) (err error)
- type Image
- func (p *Image) GetID() (v int16)
- func (p *Image) GetPath() (v string)
- func (p *Image) Read(iprot thrift.TProtocol) (err error)
- func (p *Image) ReadField1(iprot thrift.TProtocol) error
- func (p *Image) ReadField2(iprot thrift.TProtocol) error
- func (p *Image) String() string
- func (p *Image) Write(oprot thrift.TProtocol) (err error)
- type Merchant
- func (p *Merchant) GetAlipay() (v int64)
- func (p *Merchant) GetDescription() (v string)
- func (p *Merchant) GetID() (v int64)
- func (p *Merchant) GetName() (v string)
- func (p *Merchant) Read(iprot thrift.TProtocol) (err error)
- func (p *Merchant) ReadField1(iprot thrift.TProtocol) error
- func (p *Merchant) ReadField2(iprot thrift.TProtocol) error
- func (p *Merchant) ReadField3(iprot thrift.TProtocol) error
- func (p *Merchant) ReadField4(iprot thrift.TProtocol) error
- func (p *Merchant) String() string
- func (p *Merchant) Write(oprot thrift.TProtocol) (err error)
- type Order
- func (p *Order) GetAmount() (v int64)
- func (p *Order) GetCreateTime() (v int64)
- func (p *Order) GetExpTime() (v int64)
- func (p *Order) GetOrderID() (v int64)
- func (p *Order) GetProductID() (v int64)
- func (p *Order) GetProductNum() (v int64)
- func (p *Order) GetStatus() (v int8)
- func (p *Order) GetUpdateTime() (v int64)
- func (p *Order) GetUserID() (v int64)
- func (p *Order) Read(iprot thrift.TProtocol) (err error)
- func (p *Order) ReadField1(iprot thrift.TProtocol) error
- func (p *Order) ReadField2(iprot thrift.TProtocol) error
- func (p *Order) ReadField3(iprot thrift.TProtocol) error
- func (p *Order) ReadField4(iprot thrift.TProtocol) error
- func (p *Order) ReadField5(iprot thrift.TProtocol) error
- func (p *Order) ReadField6(iprot thrift.TProtocol) error
- func (p *Order) ReadField7(iprot thrift.TProtocol) error
- func (p *Order) ReadField8(iprot thrift.TProtocol) error
- func (p *Order) ReadField9(iprot thrift.TProtocol) error
- func (p *Order) String() string
- func (p *Order) Write(oprot thrift.TProtocol) (err error)
- type Pay
- func (p *Pay) GetAmount() (v int64)
- func (p *Pay) GetCreateTime() (v int64)
- func (p *Pay) GetOrderID() (v int64)
- func (p *Pay) GetPayID() (v int64)
- func (p *Pay) GetStatus() (v int8)
- func (p *Pay) GetURL() (v string)
- func (p *Pay) GetUpdateTime() (v int64)
- func (p *Pay) GetUserID() (v int64)
- func (p *Pay) Read(iprot thrift.TProtocol) (err error)
- func (p *Pay) ReadField1(iprot thrift.TProtocol) error
- func (p *Pay) ReadField2(iprot thrift.TProtocol) error
- func (p *Pay) ReadField3(iprot thrift.TProtocol) error
- func (p *Pay) ReadField4(iprot thrift.TProtocol) error
- func (p *Pay) ReadField5(iprot thrift.TProtocol) error
- func (p *Pay) ReadField6(iprot thrift.TProtocol) error
- func (p *Pay) ReadField7(iprot thrift.TProtocol) error
- func (p *Pay) ReadField8(iprot thrift.TProtocol) error
- func (p *Pay) String() string
- func (p *Pay) Write(oprot thrift.TProtocol) (err error)
- type Product
- func (p *Product) GetDescription() (v string)
- func (p *Product) GetID() (v int64)
- func (p *Product) GetIamges() (v []*Image)
- func (p *Product) GetMID() (v int64)
- func (p *Product) GetName() (v string)
- func (p *Product) GetPrice() (v int64)
- func (p *Product) GetStatus() (v int8)
- func (p *Product) GetStock() (v int64)
- func (p *Product) Read(iprot thrift.TProtocol) (err error)
- func (p *Product) ReadField1(iprot thrift.TProtocol) error
- func (p *Product) ReadField2(iprot thrift.TProtocol) error
- func (p *Product) ReadField3(iprot thrift.TProtocol) error
- func (p *Product) ReadField4(iprot thrift.TProtocol) error
- func (p *Product) ReadField5(iprot thrift.TProtocol) error
- func (p *Product) ReadField6(iprot thrift.TProtocol) error
- func (p *Product) ReadField7(iprot thrift.TProtocol) error
- func (p *Product) ReadField8(iprot thrift.TProtocol) error
- func (p *Product) String() string
- func (p *Product) Write(oprot thrift.TProtocol) (err error)
- type ProductDetail
- func (p *ProductDetail) GetBasicInfo() (v *Product)
- func (p *ProductDetail) GetCreateTime() (v int64)
- func (p *ProductDetail) GetMerchantInfo() (v *Merchant)
- func (p *ProductDetail) GetOperateInfo() (v *ProductOperateInfo)
- func (p *ProductDetail) GetUpdateTime() (v int64)
- func (p *ProductDetail) IsSetBasicInfo() bool
- func (p *ProductDetail) IsSetMerchantInfo() bool
- func (p *ProductDetail) IsSetOperateInfo() bool
- func (p *ProductDetail) Read(iprot thrift.TProtocol) (err error)
- func (p *ProductDetail) ReadField1(iprot thrift.TProtocol) error
- func (p *ProductDetail) ReadField2(iprot thrift.TProtocol) error
- func (p *ProductDetail) ReadField3(iprot thrift.TProtocol) error
- func (p *ProductDetail) ReadField4(iprot thrift.TProtocol) error
- func (p *ProductDetail) ReadField5(iprot thrift.TProtocol) error
- func (p *ProductDetail) String() string
- func (p *ProductDetail) Write(oprot thrift.TProtocol) (err error)
- type ProductOperateInfo
- func (p *ProductOperateInfo) GetCommentCount() (v int64)
- func (p *ProductOperateInfo) GetIsFavorite() (v bool)
- func (p *ProductOperateInfo) GetSaleCount() (v int64)
- func (p *ProductOperateInfo) Read(iprot thrift.TProtocol) (err error)
- func (p *ProductOperateInfo) ReadField1(iprot thrift.TProtocol) error
- func (p *ProductOperateInfo) ReadField2(iprot thrift.TProtocol) error
- func (p *ProductOperateInfo) ReadField3(iprot thrift.TProtocol) error
- func (p *ProductOperateInfo) String() string
- func (p *ProductOperateInfo) Write(oprot thrift.TProtocol) (err error)
- type User
- func (p *User) GetAvatar() (v string)
- func (p *User) GetBackground() (v string)
- func (p *User) GetID() (v int64)
- func (p *User) GetName() (v string)
- func (p *User) GetSignature() (v string)
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) ReadField3(iprot thrift.TProtocol) error
- func (p *User) ReadField4(iprot thrift.TProtocol) error
- func (p *User) ReadField6(iprot thrift.TProtocol) error
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` User *User `thrift:"user,2" form:"user" json:"user" query:"user"` Content string `thrift:"content,3" form:"content" json:"content" query:"content"` CreateData string `thrift:"create_data,4" form:"create_data" json:"create_data" query:"create_data"` }
func NewComment ¶
func NewComment() *Comment
func (*Comment) GetContent ¶
func (*Comment) GetCreateData ¶
type CommonResponse ¶
type CommonResponse struct { Code int64 `thrift:"code,1" form:"code" json:"code" query:"code"` Msg string `thrift:"msg,2" form:"msg" json:"msg" query:"msg"` }
func NewCommonResponse ¶
func NewCommonResponse() *CommonResponse
func (*CommonResponse) GetCode ¶
func (p *CommonResponse) GetCode() (v int64)
func (*CommonResponse) GetMsg ¶
func (p *CommonResponse) GetMsg() (v string)
func (*CommonResponse) ReadField1 ¶
func (p *CommonResponse) ReadField1(iprot thrift.TProtocol) error
func (*CommonResponse) ReadField2 ¶
func (p *CommonResponse) ReadField2(iprot thrift.TProtocol) error
func (*CommonResponse) String ¶
func (p *CommonResponse) String() string
type Image ¶
type Merchant ¶
type Merchant struct { ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` Alipay int64 `thrift:"alipay,2" form:"alipay" json:"alipay" query:"alipay"` Name string `thrift:"name,3" form:"name" json:"name" query:"name"` Description string `thrift:"description,4" form:"description" json:"description" query:"description"` }
var ProductDetail_MerchantInfo_DEFAULT *Merchant
func NewMerchant ¶
func NewMerchant() *Merchant
func (*Merchant) GetDescription ¶
type Order ¶
type Order struct { OrderID int64 `thrift:"order_id,1" form:"order_id" json:"order_id" query:"order_id"` UserID int64 `thrift:"user_id,2" form:"user_id" json:"user_id" query:"user_id"` ProductID int64 `thrift:"product_id,3" form:"product_id" json:"product_id" query:"product_id"` ProductNum int64 `thrift:"product_num,4" form:"product_num" json:"product_num" query:"product_num"` Amount int64 `thrift:"amount,5" form:"amount" json:"amount" query:"amount"` Status int8 `thrift:"status,6" form:"status" json:"status" query:"status"` CreateTime int64 `thrift:"create_time,7" form:"create_time" json:"create_time" query:"create_time"` UpdateTime int64 `thrift:"update_time,8" form:"update_time" json:"update_time" query:"update_time"` ExpTime int64 `thrift:"exp_time,9" form:"exp_time" json:"exp_time" query:"exp_time"` }
func (*Order) GetCreateTime ¶
func (*Order) GetExpTime ¶
func (*Order) GetOrderID ¶
func (*Order) GetProductID ¶
func (*Order) GetProductNum ¶
func (*Order) GetUpdateTime ¶
type Pay ¶
type Pay struct { PayID int64 `thrift:"pay_id,1" form:"pay_id" json:"pay_id" query:"pay_id"` OrderID int64 `thrift:"order_id,2" form:"order_id" json:"order_id" query:"order_id"` UserID int64 `thrift:"user_id,3" form:"user_id" json:"user_id" query:"user_id"` Amount int64 `thrift:"amount,4" form:"amount" json:"amount" query:"amount"` CreateTime int64 `thrift:"create_time,5" form:"create_time" json:"create_time" query:"create_time"` UpdateTime int64 `thrift:"update_time,6" form:"update_time" json:"update_time" query:"update_time"` Status int8 `thrift:"status,7" form:"status" json:"status" query:"status"` URL string `thrift:"url,8" form:"url" json:"url" query:"url"` }
func (*Pay) GetCreateTime ¶
func (*Pay) GetOrderID ¶
func (*Pay) GetUpdateTime ¶
type Product ¶
type Product struct { ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` MID int64 `thrift:"m_id,2" form:"m_id" json:"m_id" query:"m_id"` Price int64 `thrift:"price,3" form:"price" json:"price" query:"price"` Name string `thrift:"name,4" form:"name" json:"name" query:"name"` Description string `thrift:"description,5" form:"description" json:"description" query:"description"` Iamges []*Image `thrift:"iamges,6" form:"iamges" json:"iamges" query:"iamges"` Stock int64 `thrift:"stock,7" form:"stock" json:"stock" query:"stock"` Status int8 `thrift:"status,8" form:"status" json:"status" query:"status"` }
var ProductDetail_BasicInfo_DEFAULT *Product
func NewProduct ¶
func NewProduct() *Product
func (*Product) GetDescription ¶
type ProductDetail ¶
type ProductDetail struct { BasicInfo *Product `thrift:"basic_info,1" form:"basic_info" json:"basic_info" query:"basic_info"` MerchantInfo *Merchant `thrift:"merchant_info,2" form:"merchant_info" json:"merchant_info" query:"merchant_info"` OperateInfo *ProductOperateInfo `thrift:"operate_info,3" form:"operate_info" json:"operate_info" query:"operate_info"` CreateTime int64 `thrift:"create_time,4" form:"create_time" json:"create_time" query:"create_time"` UpdateTime int64 `thrift:"update_time,5" form:"update_time" json:"update_time" query:"update_time"` }
func NewProductDetail ¶
func NewProductDetail() *ProductDetail
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) IsSetBasicInfo ¶
func (p *ProductDetail) IsSetBasicInfo() bool
func (*ProductDetail) IsSetMerchantInfo ¶
func (p *ProductDetail) IsSetMerchantInfo() bool
func (*ProductDetail) IsSetOperateInfo ¶
func (p *ProductDetail) IsSetOperateInfo() bool
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) String ¶
func (p *ProductDetail) String() string
type ProductOperateInfo ¶
type ProductOperateInfo struct { SaleCount int64 `thrift:"sale_count,1" form:"sale_count" json:"sale_count" query:"sale_count"` CommentCount int64 `thrift:"comment_count,2" form:"comment_count" json:"comment_count" query:"comment_count"` IsFavorite bool `thrift:"is_favorite,3" form:"is_favorite" json:"is_favorite" query:"is_favorite"` }
var ProductDetail_OperateInfo_DEFAULT *ProductOperateInfo
func NewProductOperateInfo ¶
func NewProductOperateInfo() *ProductOperateInfo
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) 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) String ¶
func (p *ProductOperateInfo) String() string
type User ¶
type User struct { ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` Name string `thrift:"name,2" form:"name" json:"name" query:"name"` Avatar string `thrift:"avatar,3" form:"avatar" json:"avatar" query:"avatar"` Background string `thrift:"background,4" form:"background" json:"background" query:"background"` Signature string `thrift:"signature,6" form:"signature" json:"signature" query:"signature"` }
var Comment_User_DEFAULT *User
func (*User) GetBackground ¶
func (*User) GetSignature ¶
Click to show internal directories.
Click to hide internal directories.