update
This commit is contained in:
@@ -28,6 +28,7 @@ type Pet struct {
|
||||
HeadImgType int `json:"headImgType"` //用户头像类型 0远程头像 1本地头像
|
||||
HeadImgUrl string `json:"headImgUrl"` //宠物头像
|
||||
Desc string `json:"desc"` //宠物描述
|
||||
Weight int `json:"weight"` //宠物体重
|
||||
Precaution string `json:"precaution"` //注意事项
|
||||
Gender int `json:"gender"` //性别 0男 1女
|
||||
Birthday string `json:"birthday"` //生日
|
||||
@@ -90,6 +91,7 @@ type PetGoods struct {
|
||||
Assortment int `gorm:"not null" json:"assortment"` //品种Id 优先用品种查询 如不存在 则用类型及大小查询
|
||||
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"` //体重
|
||||
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