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: 2 Imported by: 0

Documentation

Index

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 (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) 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) 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" 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) 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) 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" form:"id" json:"id" query:"id"`
	Path string `thrift:"path,2" form:"path" json:"path" query:"path"`
}

func NewImage

func NewImage() *Image

func (*Image) GetID

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

func (*Image) GetPath

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

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) 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" 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) 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) 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) 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" 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 NewOrder

func NewOrder() *Order

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) 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) 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" 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 NewPay

func NewPay() *Pay

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) GetURL

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

func (*Pay) GetUpdateTime

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

func (*Pay) GetUserID

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

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) 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" 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

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

func (*Product) GetID

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

func (*Product) GetIamges

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

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) 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) 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" 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) 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) 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" 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

func (*ProductOperateInfo) Write

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

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 NewUser

func NewUser() *User

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) 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) 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