优惠券相关逻辑

This commit is contained in:
yan.y
2024-08-14 16:11:31 +08:00
parent 39aa34f6c2
commit e112772826
4 changed files with 34 additions and 10 deletions
+1
View File
@@ -285,6 +285,7 @@ type Coupons struct {
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"createTime"` //创建时间
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
Status int `gorm:"default:1" json:"-"` //数据状态
SendStatus int `gorm:"not null" json:"-"` //下发类型 1领取 2新用户注册赠送 3邀请新用户赠送
}
type UserCoupons struct {