21 lines
1.1 KiB
Go
21 lines
1.1 KiB
Go
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:支付状态"`
|
|
Type int `json:"type" gorm:"column:type;default:1;comment:支付类型"` // 1.订阅支付(包含包月包季包年) 2:vip支付
|
|
User *system.User `json:"user" gorm:"foreignKey:UserId"`
|
|
}
|