修改了 系统优惠卷详情 ,增加发放记录

This commit is contained in:
2024-05-31 17:42:34 +08:00
parent 7b021906a2
commit 61ca263d0d
5 changed files with 115 additions and 31 deletions
+1
View File
@@ -37,6 +37,7 @@ type Coupon struct {
IsPopup int `gorm:"column:is_popup;type:tinyint(1);default:0;comment:是否首页弹窗(0:否 1:是)" json:"is_popup"`
CouponDesc string `gorm:"column:coupon_desc;type:text;comment:优惠卷描述" json:"coupon_desc"`
Model
CouponGrant []*CouponGrant `gorm:"foreignKey:CouponId;references:coupon_id" json:"coupon_grant"` // 优惠卷发放记录
}
func (m *Coupon) TableName() string {