refactor: 简化商品类型注释并移除冗余字段
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user