Files
2026-05-20 16:13:58 +08:00

44 lines
2.0 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package proto
// 发起提现
type AgentWithdraw struct {
Mobile string `form:"mobile" json:"mobile" binding:"required"` //手机号
Captcha string `form:"captcha" json:"captcha" binding:"required"` //验证码
PayMentAct string `form:"act" json:"act" binding:"required"` //交易账户
PayMentName string `form:"actName" json:"actName" binding:"required"` //交易账户持有人
PaymentMethod string `form:"paymentMethod" json:"paymentMethod" binding:"required"` //提现方式,alipay,bankcard,USDT
Yuan float64 `form:"yuan" json:"yuan" binding:"required,min=100"` //提现金额
WithdrawType int `form:"withdrawType" json:"withdrawType"` //提现类型 1:财务转账 0:提现
AppId int32 `form:"appId" json:"appId" binding:"required"` //所选APP
}
// 提现审核
type WithdrawAllow struct {
ID string `json:"id"` //订单id
Allow bool `json:"allow"` //true:允许 false:拒绝
StatusDesc string `json:"statusDesc"` //描述
}
type TransStatus int
const (
Transferred TransStatus = 1 //已转账
TransRefund TransStatus = 2 //转账被拒绝
)
// 财务转账回执
type FinancialReceipt struct {
ID string `form:"id" json:"id" binding:"required"` //ID
TransState TransStatus `form:"transState" json:"transState" binding:"required"` //转账状态 1:已转账 2:转账被拒绝
Remark string `form:"remark" json:"remark"` //备注
}
// ExchgBack 回掉结构体
type ExchgBack struct {
OID string `json:"oid" binding:"required"` //支付平台订单号
Money int64 `json:"money" binding:"required"` //兑换金额
TradeNo string `json:"tradeNo" binding:"required"` //商户订单号
Status string `json:"status"` //200成功
Mark string `json:"mark"` //拒绝兑换理由
}