From 06a35591a8825cb71b8f90cfbdb16cfdc5312355 Mon Sep 17 00:00:00 2001 From: chenlin Date: Wed, 24 Jul 2024 09:50:00 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E6=83=A0=E5=88=B8Coupon=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A7=84=E5=88=99=E5=AD=97=E6=AE=B5rule?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/coupon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"`