新增打包脚本,新增商品基础逻辑
This commit is contained in:
@@ -45,6 +45,7 @@ type PetBaseInfo struct {
|
||||
PetType int `gorm:"not null" json:"petType"` //类型 1猫 2狗
|
||||
Assortment string `gorm:"not null" json:"assortment"` //品种
|
||||
Size int `gorm:"not null" json:"size"` //大小 1大 2中 3小
|
||||
Hair int `gorm:"not null" json:"hair"` //毛发 0未知 1长毛 2短毛
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
}
|
||||
|
||||
@@ -92,6 +93,7 @@ type PetGoods struct {
|
||||
PetType int `gorm:"not null" json:"petType"` //类型 1猫 2狗
|
||||
Size int `gorm:"not null" json:"size"` //大小 1大 2中 3小
|
||||
Weight int `gorm:"not null" json:"weight"` //体重
|
||||
Hair int `gorm:"not null" json:"hair"` //毛发 0未知 1长毛 2短毛
|
||||
GoodsId int64 `gorm:"not null" json:"goodsId"` //商品ID
|
||||
Sort int `gorm:"not null" json:"sort"` //排序
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
|
||||
Reference in New Issue
Block a user