添加支付宝和微信充值功能,重构交易处理逻辑,优化资源创建与支付链接生成

This commit is contained in:
2025-04-18 16:22:38 +08:00
parent f6a97545c5
commit a7e59fb1d7
14 changed files with 939 additions and 224 deletions

View File

@@ -30,6 +30,7 @@ type Trade struct {
Type int32 `gorm:"column:type;not null" json:"type"`
CancelAt common.LocalDateTime `gorm:"column:cancel_at" json:"cancel_at"`
PaidAt common.LocalDateTime `gorm:"column:paid_at" json:"paid_at"`
PayURL string `gorm:"column:pay_url" json:"pay_url"`
}
// TableName Trade's table name