diff --git a/business/model/order.go b/business/model/order.go index e496bec72..4aa756e16 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -429,9 +429,9 @@ func (v *Coupons) TableIndex() [][]string { type UserCoupons struct { ModelIDCUL - CouponID int `json:"couponID"` //优惠券ID - UserID string `json:"userID"` //userID - CouponStatus int `json:"couponStatus"` //优惠券状态,0为正常可使用,-1为已过期, -2为已使用 + CouponID int `orm:"column(coupon_id)" json:"couponID"` //优惠券ID + UserID string `orm:"column(user_id)" json:"userID"` //userID + CouponStatus int `json:"couponStatus"` //优惠券状态,0为正常可使用,-1为已过期, -2为已使用 } func (v *UserCoupons) TableIndex() [][]string {