新增扣款逻辑及新字段

This commit is contained in:
yan.y
2024-05-08 19:08:58 +08:00
parent 6d9923b4f2
commit bf7b74d922
4 changed files with 75 additions and 0 deletions
+2
View File
@@ -35,6 +35,7 @@ type Pet struct {
Birthday string `json:"birthday"` //生日
PetId int `json:"petId"` //宠物类型
Eunuch int `json:"eunuch"` //是否绝育 0否 1是 2未知
Vaccine int `gorm:"default:0" json:"vaccine"` //是否打疫苗 0否 1是
LastServiceProj string `gorm:"default:'-'" json:"lastServiceProj"` //上次服务项目
LastServiceDate string `gorm:"default:'-'" json:"lastServiceDate"` //上次服务时间
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not null" json:"createTime"` //创建时间
@@ -122,6 +123,7 @@ type OrderMain struct {
ServiceAddrId int64 `json:"serviceAddrId"` //服务地址信息
ServiceRemark string `json:"serviceRemark"` //服务备注
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"createTime"` //创建时间
PayStatus int `gorm:"default:0" json:"payStatus"` //支付状态 0未支付 1已支付
}
// OrderSub 子订单