This commit is contained in:
@@ -98,7 +98,15 @@ type PaymentMerchantPoolResponse struct {
|
||||
CurrentMerchantID *uint `json:"current_merchant_id,omitempty" description:"当前命中商户ID;商户池停用或无可用成员时为空"`
|
||||
CurrentMerchantName string `json:"current_merchant_name,omitempty" description:"当前命中商户名称;商户池停用或无可用成员时为空"`
|
||||
UpdatedAt time.Time `json:"updated_at" description:"最近配置更新时间"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
// PaymentMerchantPoolResponse 的失败字段用于识别自动禁用原因及关联支付单,不包含凭证或原始响应。
|
||||
// LastFailureMerchantID 表示最近一次失败留痕对应的商户。
|
||||
// LastFailurePaymentID 与 LastFailurePaymentNo 用于调查原支付事实。
|
||||
LastFailureMerchantID *uint `json:"last_failure_merchant_id,omitempty" description:"最近明确失败商户ID"`
|
||||
LastFailurePaymentID *uint `json:"last_failure_payment_id,omitempty" description:"最近明确失败关联支付单ID"`
|
||||
LastFailurePaymentNo string `json:"last_failure_payment_no,omitempty" description:"最近明确失败关联支付单号"`
|
||||
LastFailureReason string `json:"last_failure_reason,omitempty" description:"最近明确失败安全原因"`
|
||||
LastFailureAt *time.Time `json:"last_failure_at,omitempty" description:"最近明确失败时间"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
// WechatAuthorizationRequest 是微信授权配置管理写入请求。
|
||||
|
||||
@@ -92,3 +92,34 @@ type PaymentMerchantRoutingSuccess struct {
|
||||
}
|
||||
|
||||
func (PaymentMerchantRoutingSuccess) TableName() string { return "tb_payment_merchant_routing_success" }
|
||||
|
||||
// PaymentMerchantRoutingAttempt 是支付创建提交时冻结路由的一次不可变尝试事实。
|
||||
type PaymentMerchantRoutingAttempt struct {
|
||||
ID uint `gorm:"column:id;primaryKey" json:"id"`
|
||||
PaymentID uint `gorm:"column:payment_id" json:"payment_id"`
|
||||
MerchantID uint `gorm:"column:merchant_id" json:"merchant_id"`
|
||||
PoolID uint `gorm:"column:pool_id" json:"pool_id"`
|
||||
RoutingEpoch int64 `gorm:"column:routing_epoch" json:"routing_epoch"`
|
||||
Amount int64 `gorm:"column:amount" json:"amount"`
|
||||
ResultClass string `gorm:"column:result_class" json:"result_class"`
|
||||
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
||||
}
|
||||
|
||||
func (PaymentMerchantRoutingAttempt) TableName() string { return "tb_payment_merchant_routing_attempt" }
|
||||
|
||||
// PaymentMerchantFailure 记录明确预下单失败导致的商户自动禁用调查事实。
|
||||
type PaymentMerchantFailure struct {
|
||||
ID uint `gorm:"column:id;primaryKey" json:"id"`
|
||||
PaymentID uint `gorm:"column:payment_id" json:"payment_id"`
|
||||
PaymentNo string `gorm:"column:payment_no" json:"payment_no"`
|
||||
MerchantID uint `gorm:"column:merchant_id" json:"merchant_id"`
|
||||
PoolID uint `gorm:"column:pool_id" json:"pool_id"`
|
||||
ResultClass string `gorm:"column:result_class" json:"result_class"`
|
||||
FailureReason string `gorm:"column:failure_reason" json:"failure_reason"`
|
||||
StatusBefore int `gorm:"column:merchant_status_before" json:"merchant_status_before"`
|
||||
StatusAfter int `gorm:"column:merchant_status_after" json:"merchant_status_after"`
|
||||
OccurredAt time.Time `gorm:"column:occurred_at" json:"occurred_at"`
|
||||
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
||||
}
|
||||
|
||||
func (PaymentMerchantFailure) TableName() string { return "tb_payment_merchant_failure" }
|
||||
|
||||
Reference in New Issue
Block a user