feat: 支付闭环

This commit is contained in:
Blizzard
2026-03-04 17:05:48 +08:00
parent 042c99aa46
commit 7a32f8a351
31 changed files with 902 additions and 503 deletions
+19
View File
@@ -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"`
}