diff --git a/model/coupon.go b/model/coupon.go index d11da7e..ef049e1 100644 --- a/model/coupon.go +++ b/model/coupon.go @@ -26,7 +26,8 @@ type Coupon struct { Model Name string `json:"name"` - Describe string `json:"describe" gorm:"type:text;"` // 描述 + Describe string `json:"describe" gorm:"type:text"` // 描述 + Rule string `json:"rule" gorm:"type:text"` // 优惠券使用规则 CouponType string `json:"coupon_type"` ActivityType uint32 `json:"activity_type"` // 活动类型 1-会员续费 2-关注公众号 3-运费包 4-开通会员(2024/7/17新增) ActivityId uint32 `json:"activity_id" gorm:"index"`