From 9f73470bc2a0fe6c29a55593dbfbd746968c3a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 8 Jan 2021 16:58:04 +0800 Subject: [PATCH] aa --- business/model/order.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {