mixpay
This commit is contained in:
@@ -43,6 +43,24 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
//混合支付详情表
|
||||
type MixPay struct {
|
||||
ModelIDCUL
|
||||
|
||||
OrderID string `orm:"column(order_id)" json:"order_id"` //账单ID 对应order表
|
||||
BalancePrice int `orm:"column(balance_price)" json:"balance_price"` //余额支付部分
|
||||
TotalPrice int `orm:"column(total_price)" json:"total_price"` //订单总额
|
||||
WxPrice int `orm:"column(wx_price)" json:"wx_price"` //微信支付部分
|
||||
Method int `orm:"column(method)" json:"method"` //支付方式 1-余额支付,2-微信支付,5-余额+微信混合支付
|
||||
}
|
||||
|
||||
func (v *MixPay) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"OrderID"},
|
||||
[]string{"CreatedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
//账单收入表
|
||||
type BillIncome struct {
|
||||
ModelIDCUL
|
||||
|
||||
@@ -73,7 +73,7 @@ type Order struct {
|
||||
CityCode int `orm:"default(0)" json:"cityCode"` // 提交订单时用户所在城市
|
||||
DistrictCode int `orm:"default(0)" json:"districtCode"` // 城市code
|
||||
Address string `orm:"size(255)" json:"address"` // 地址
|
||||
PayMethod int `orm:"size(255)" json:"address"` // 支付方式1-余额支付,2-微信支付,3-微信提现,4-支付宝提现
|
||||
PayMethod int `orm:"size(255)" json:"address"` // 支付方式1-余额支付,2-微信支付,3-微信提现,4-支付宝提现 5-余额+微信混合支付
|
||||
}
|
||||
|
||||
func (v *Order) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user