feat: integrate unified payment and wallet refunds
This commit is contained in:
@@ -6,7 +6,7 @@ import "git.apinb.com/bsm-sdk/core/database"
|
||||
type GasorderPayment struct {
|
||||
Entity // 公共实体字段,Status 保存支付尝试状态
|
||||
GasorderBasicID uint64 `gorm:"column:gasorder_basic_id;not null;index;uniqueIndex:idx_gasorder_payment_attempt" json:"gasorder_basic_id"` // 订单自增主键
|
||||
WalletPaymentID uint64 `gorm:"column:wallet_payment_id;not null;uniqueIndex" json:"wallet_payment_id"` // 钱包支付记录自增主键
|
||||
PaymentOrderID uint64 `gorm:"column:payment_order_id;not null;uniqueIndex" json:"payment_order_id"` // 钱包支付记录自增主键
|
||||
AttemptNo int `gorm:"column:attempt_no;not null;uniqueIndex:idx_gasorder_payment_attempt" json:"attempt_no"` // 支付尝试序号
|
||||
Amount int64 `gorm:"column:amount;not null;check:amount > 0" json:"amount"` // 支付金额,单位分
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user