新增打包脚本,新增商品基础逻辑

This commit is contained in:
yan.y
2024-05-04 22:46:56 +08:00
parent b75547f739
commit 3e9263324b
5 changed files with 50 additions and 7 deletions
+2
View File
@@ -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:"-"` //创建时间