|
@@ -17,23 +17,23 @@ const (
|
|
|
)
|
|
|
|
|
|
type TradeOrderView struct {
|
|
|
- RealName string
|
|
|
- Mobile string
|
|
|
- ProductName string
|
|
|
- TransactionID string `gorm:"column:transaction_id;size:255;default:null;comment:'第三方平台ID'" json:"transaction_id"`
|
|
|
- ProductOrderID string `gorm:"column:product_order_id;size:255;default:null;comment:'商品订单号'" json:"product_order_id"`
|
|
|
- PaymentAccount string `gorm:"column:payment_account;size:255;default:null;comment:'支付账号'" json:"payment_account"`
|
|
|
- PaymentWay string `gorm:"column:payment_way;type:enum('wechat');default:null;comment:'支付渠道'" json:"payment_way"`
|
|
|
+ RealName string `json:"realName"`
|
|
|
+ Mobile string `json:"mobile"`
|
|
|
+ ProductName string `json:"productName"`
|
|
|
+ TransactionID string `json:"transactionId"`
|
|
|
+ ProductOrderID string `json:"productOrderId"`
|
|
|
+ PaymentAccount string `json:"paymentAccount"`
|
|
|
+ PaymentWay string `json:"paymentWay"`
|
|
|
|
|
|
- Amount string `gorm:"column:amount;size:20;default:null;comment:'支付金额'" json:"amount"`
|
|
|
- Currency string `gorm:"column:currency;size:255;default:null;comment:'货币'" json:"currency"`
|
|
|
- MerchantID string `gorm:"column:merchant_id;size:255;default:null;comment:'商户id'" json:"merchant_id"`
|
|
|
- UserID int `gorm:"column:user_id;default:null;comment:'用户id'" json:"user_id"`
|
|
|
- TemplateUserID int `gorm:"column:template_user_id;default:null;comment:'临时用户id'" json:"template_user_id"`
|
|
|
- PaymentType string `gorm:"column:payment_type;type:enum('pay','refund');default:null;comment:'订单类型'" json:"payment_type"`
|
|
|
- PaymentStatus string `gorm:"column:payment_status;type:enum('pending','done','failed');default:null;comment:'支付状态'" json:"payment_status"`
|
|
|
- DealTime string
|
|
|
- CreatedTime string
|
|
|
+ Amount string `json:"amount"`
|
|
|
+ Currency string `json:"currency"`
|
|
|
+ MerchantID string `json:"merchantI"`
|
|
|
+ UserID int `json:"userId"`
|
|
|
+ TemplateUserID int `json:"templateUserId"`
|
|
|
+ PaymentType string `json:"paymentType"`
|
|
|
+ PaymentStatus string `json:"paymentStatus"`
|
|
|
+ DealTime string `json:"dealTime"`
|
|
|
+ CreatedTime string `json:"createdTime"`
|
|
|
}
|
|
|
type TradeOrder struct {
|
|
|
Id uint `gorm:"primaryKey;autoIncrement" json:"id"`
|