feat: 支付闭环
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package radio
|
||||
|
||||
import (
|
||||
"sundynix-go/global"
|
||||
"sundynix-go/model/system"
|
||||
)
|
||||
|
||||
type Order struct {
|
||||
global.BaseModel
|
||||
OutTradeNo string `json:"outTradeNo" gorm:"index;column:out_trade_no;comment:商户订单号"`
|
||||
UserId string `json:"userId" form:"userId" gorm:"index;column:user_id;comment:用户id"`
|
||||
ChannelId string `gorm:"column:channel_id"`
|
||||
SubscriptionType string `gorm:"column:sub_type;comment:1:月,2:季,3:年"`
|
||||
Name string `json:"name" gorm:"column:name;comment:订单名称"`
|
||||
Amount int `json:"amount" gorm:"column:amount;comment:金额分"`
|
||||
Status int `json:"status" gorm:"column:status;comment:订单状态"` // 0:待支付 1:已支付 2:已关闭
|
||||
PayStatus string `json:"payStatus" gorm:"column:pay_status;comment:支付状态"`
|
||||
User *system.User `json:"user" gorm:"foreignKey:UserId"`
|
||||
}
|
||||
Reference in New Issue
Block a user