数据关联手机号查询

This commit is contained in:
2026-03-20 14:37:41 +08:00
parent bb895eccdf
commit 71f1c6f141
10 changed files with 417 additions and 8 deletions

View File

@@ -26,6 +26,8 @@ type Trade struct {
PaymentURL *string `json:"payment_url,omitempty" gorm:"column:payment_url"` // 支付链接
CompletedAt *time.Time `json:"completed_at,omitempty" gorm:"column:completed_at"` // 支付时间
CanceledAt *time.Time `json:"canceled_at,omitempty" gorm:"column:canceled_at"` // 取消时间
User *User `json:"user,omitempty" gorm:"foreignKey:UserID"`
}
// TradeType 订单类型枚举