This commit is contained in:
2024-06-07 09:19:04 +08:00
parent 859c9f56d0
commit 035676ba57
4 changed files with 64 additions and 18 deletions
+1
View File
@@ -18,6 +18,7 @@ type CouponGrant struct {
StopReason string `gorm:"column:stop_reason;type:varchar(255);comment:停止原因" json:"stop_reason"`
AdminUserId int64 `gorm:"column:admin_user_id;type:bigint(19);comment:后台操作用户id" json:"admin_user_id"`
Model
User *User `gorm:"foreignKey:UserId;references:user_id" json:"user"` // 用户
}
func (m *CouponGrant) TableName() string {