This commit is contained in:
Mrx
2026-03-23 17:13:49 +08:00
parent e10c69fe30
commit c4c9722250
8 changed files with 229 additions and 174 deletions

View File

@@ -251,12 +251,16 @@ type (
Id string `json:"id"` // 主键
AgentId string `json:"agent_id"` // 代理ID
WithdrawNo string `json:"withdraw_no"` // 提现单号
WithdrawMethod int64 `json:"withdraw_method"` // 提现方式1=支付宝2=银行卡
Amount float64 `json:"amount"` // 金额
TaxAmount float64 `json:"tax_amount"` // 税费金额
ActualAmount float64 `json:"actual_amount"` // 实际到账金额
Status int64 `json:"status"` // 状态
PayeeAccount string `json:"payee_account"` // 收款账户
PayeeName string `json:"payee_name"` // 收款人姓名
BankName string `json:"bank_name"` // 开户行
BankCardNo string `json:"bank_card_no"` // 银行卡号(掩码)
BankReservedMobile string `json:"bank_reserved_mobile"` // 银行预留手机号
Remark string `json:"remark"` // 备注
CreateTime string `json:"create_time"` // 创建时间
}

View File

@@ -568,20 +568,28 @@ type (
WithdrawalItem {
Id string `json:"id"` // 记录ID
WithdrawalNo string `json:"withdrawal_no"` // 提现单号
WithdrawMethod int64 `json:"withdraw_method"` // 提现方式1=支付宝2=银行卡
Amount float64 `json:"amount"` // 提现金额
TaxAmount float64 `json:"tax_amount"` // 税费金额
ActualAmount float64 `json:"actual_amount"` // 实际到账金额
Status int64 `json:"status"` // 状态1=待审核2=审核通过3=审核拒绝4=提现中5=提现成功6=提现失败
PayeeAccount string `json:"payee_account"` // 收款账户
PayeeName string `json:"payee_name"` // 收款人姓名
BankName string `json:"bank_name"` // 开户行
BankCardNo string `json:"bank_card_no"` // 银行卡号(掩码)
BankReservedMobile string `json:"bank_reserved_mobile"` // 银行预留手机号
Remark string `json:"remark"` // 备注
CreateTime string `json:"create_time"` // 创建时间
}
// 申请提现
ApplyWithdrawalReq {
Amount float64 `json:"amount"` // 提现金额
PayeeAccount string `json:"payee_account"` // 收款账户
PayeeName string `json:"payee_name"` // 收款人姓名
Amount float64 `json:"amount"` // 提现金额
WithdrawMethod int64 `json:"withdraw_method"` // 提现方式1=支付宝2=银行卡
PayeeAccount string `json:"payee_account"` // 收款账户(支付宝)
PayeeName string `json:"payee_name"` // 收款人姓名/持卡人姓名
BankName string `json:"bank_name,optional"` // 开户行(银行卡必填)
BankCardNo string `json:"bank_card_no,optional"` // 银行卡号(银行卡必填)
BankReservedMobile string `json:"bank_reserved_mobile,optional"` // 银行预留手机号(银行卡必填)
}
ApplyWithdrawalResp {
WithdrawalId string `json:"withdrawal_id"` // 提现记录ID