25 lines
1.5 KiB
Go
25 lines
1.5 KiB
Go
package mysqlmodel
|
|
|
|
type Goods struct {
|
|
Model
|
|
GoodsCode string `gorm:"column:goods_code"` // 商品编码
|
|
GoodsName string `gorm:"column:goods_name"` // 商品名称
|
|
GoodsType int8 `gorm:"column:goods_type"` // 商品类型 1=会员包 2=上传包 3=AI推荐包 4=衣柜分享包 5=搭配分享包
|
|
Price int64 `gorm:"column:price"` // 商品原价(分)
|
|
DiscountPrice int64 `gorm:"column:discount_price"` // 商品售价(分)
|
|
MemberDays int64 `gorm:"column:member_days"` // 赠送会员天数
|
|
CosQuota int64 `gorm:"column:cos_quota"` // 赠送总上传额度
|
|
AIRecommendQuota int64 `gorm:"column:ai_recommend_quota"` // 赠送AI推荐额度
|
|
ClosetShareQuota int64 `gorm:"column:closet_share_quota"` // 赠送衣柜分享额度
|
|
OutfitShareQuota int64 `gorm:"column:outfit_share_quota"` // 赠送搭配分享额度
|
|
ValidDays int64 `gorm:"column:valid_days"` // 赠送额度有效期天数(加量包用;会员包为 0 表示跟随 VIP)
|
|
Description string `gorm:"column:description"` // 商品描述
|
|
Status int8 `gorm:"column:status"` // 状态 1=上架 2=下架
|
|
ProductID string `gorm:"column:product_id"` // 虚拟支付道具ID(空表示未发布)
|
|
ProductStatus int8 `gorm:"column:product_status"` // 虚拟支付道具发布状态 0=未发布 1=发布中 2=已发布 3=发布失败
|
|
}
|
|
|
|
func (Goods) TableName() string {
|
|
return "goods"
|
|
}
|