mh_server/model/shopping_cart.go
2021-06-30 10:12:05 +08:00

17 lines
397 B
Go

package model
//go:generate goqueryset -in shopping_cart.go
// gen:qs
type ShoppingCart struct {
Model
Uid uint64 `json:"uid" gorm:"index"`
GameCardId uint64 `json:"game_card_id"` // 游戏卡id
DeliveryType uint8 `json:"delivery_type"` // 发货类型
Count uint32 `json:"count"` // 数量
}
func (*ShoppingCart) TableName() string {
return "shopping_cart"
}