diff --git a/business/model/order.go b/business/model/order.go index 3c1b599de..8b031ce36 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -7,7 +7,8 @@ type PayOrder struct { CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"` OrderID string `orm:"column(order_id)" json:"orderID"` //订单号 UserID string `orm:"column(user_id);size(48)" json:"userID"` //用户ID - OrderType int `json:"orderType"` //订单类型,流量充值等 + OrderType string `json:"orderType"` //订单类型,流量充值等 + TypeID string `orm:"column(type_id)" json:"type_id"` //类型ID,充流量就是套餐对应的id Origin string `json:"origin"` //订单来源,小程序,开放后台 Status int `json:"status"` //订单状态,待支付2,已支付5,支付成功110,支付失败115 PayPrice int `json:"payPrice"` //支付金额 @@ -16,7 +17,7 @@ type PayOrder struct { PrepayID string `orm:"column(prepay_id);size(48)" json:"prepayID"` // 下单后,支付前,支付方生成的事务ID OriginalData string `orm:"type(text)" json:"-"` Comment string `orm:"size(255)" json:"comment"` //备注 - ThingID string `orm:"column(thing_id)" json:"thing_id"` //订单充值项目ID + ThingID string `orm:"column(thing_id)" json:"thing_id"` //订单充值项目ID,充流量就是iccid } func (v *PayOrder) TableUnique() [][]string {