diff --git a/modules/config/model/shop.go b/modules/config/model/shop.go index acc406c0..a98d1007 100644 --- a/modules/config/model/shop.go +++ b/modules/config/model/shop.go @@ -12,10 +12,9 @@ const ( // ShopConfig 商店商品核心配置模型 type ShopConfig struct { *BaseConfig - // 核心字段 - ProductName string `gorm:"not null;size:128;comment:'商品名称'" json:"product_name" description:"商品名称"` + //商品类型 - ProductType uint32 `gorm:"not null;default:0;comment:'商品类型(0-普通商品 1-虚拟商品 2-限时商品)'" json:"product_type" description:"商品类型"` + ProductType uint32 `gorm:"not null;default:0;comment:'商品类型'" json:"product_type" description:"商品类型"` //商品ID ProductID int64 `gorm:"not null;uniqueIndex;comment:'商品ID'" json:"product_id" description:"商品ID"`