package values import "server/common" // RechargeOrderReq 充值订单查询 type RechargeOrderReq struct { OrderID string } type RechargeOrderResp struct { Status int } // Amount 充值金额 // Per 赠送比例 type OneConfigPayBonus struct { Amount int64 Per int64 } // RechargeInfoResp 充值信息返回 type RechargeInfoResp struct { List []common.ConfigPayProduct Channels []*common.ConfigPayChannels // 支付渠道数目 ConfigPayBonus []OneConfigPayBonus Tips string SelectID int DiscountTicket *DiscountTicket } type DiscountTicket struct { Level int Discount string TimeLeft int64 Range []int64 } // RechargeReq 充值请求 地址格式为:{"city":"Mumbai","street":"sarang street","houseNumber":"-54/a"} type RechargeReq struct { CurrencyType common.CurrencyType `json:"CurrencyType"` Amount int64 `json:"Amount"` PayChannel int ProductID int Bonus bool } // RechargeHistoryReq 请求充值记录 type RechargeHistoryReq struct { Page int `json:"Page"` // 页码 Num int `json:"Num" binding:"required"` // 一页的数目 // Start *string `json:"Start"` // 开始时间 // End *string `json:"End"` // 结束时间 } // RechargeHistoryResp 请求充值记录返回 type RechargeHistoryResp struct { Count int64 `json:"Count"` List []common.RechargeOrder `json:"List"` } // CommonWithdrawReq请求 // type CommonWithdrawReq struct { // // 收款信息 // AccountName string `json:"accountName"` // 收款人姓名 // Mobile string `json:"mobile"` // 收款人手机号码 // Email string `json:"email"` // 收款人邮箱 // BankCardNo string `json:"bankCardNo"` // 收款银行卡号,银行卡代付方式必填 // DrawType int64 `json:"drawType"` // 收款方式 1:UPI 2:银行卡 // BankCode string `json:"bankCode"` // 银行编码或者钱包类型 UPI代付的VPA账号,3至50个字符。支持的字符:a-z,A-Z,0-9,.,-和一个@,虚拟付款地址,例如,dfumar@exampleupi // Address string `json:"address"` // 收款人地址 // } type WithdrawPay struct { common.WithdrawCommon Address Address `json:"address"` } // Address 用户地址 用户的城市名称 用户的街道名称 用户的门牌号 type Address struct { City string `json:"city"` Street string `json:"street"` HouseNumber string `json:"houseNumber"` } // WithdrawCheckReq 赠送确认请求 type WithdrawCheckReq struct { Amount int64 `json:"Amount"` // CurrencyType common.CurrencyType `json:"CurrencyType"` } // WithdrawReq 退出请求 type WithdrawReq struct { Amount int64 `json:"Amount"` ChannelID *int `json:"ChannelID"` // 代付渠道选择 CurrencyType common.CurrencyType `json:"CurrencyType"` // 可能对应多种结构 PayAccount map[string]interface{} `json:"PayAccount" binding:"required"` } // WithdrawBlockReq 退出请求 type WithdrawBlockReq struct { Amount int64 `json:"Amount"` CurrencyType common.CurrencyType `json:"CurrencyType"` Address string `json:"Address"` } // WithdrawResp 退出请求返回 // RechargeLimit 需要充值的金额 type WithdrawResp struct { RechargeLimit int Balance int64 WithdrawBalance int64 } // WithDrawInfoResp 获取退出信息 // List 退出列表 // WithDrawCount 今日退出次数 // TotalWithdrawCount 今日可代付总次数 // Tips 提示语 // WithdrawChannels 退出渠道 type WithDrawInfoResp struct { List []common.ConfigWithdrawProduct Channels []*common.ConfigWithdrawChannels WithDrawCount int TotalWithdrawCount int Tips string Fees []int64 Bets []int64 NeedBet int64 // 打码信息 } // WithdrawHistoryReq 请求退出记录 type WithdrawHistoryReq struct { Page int `json:"Page"` // 页码 Num int `json:"Num" binding:"required"` // 一页的数目 } // WithdrawHistoryResp 请求退出记录返回 type WithdrawHistoryResp struct { Count int64 `json:"Count"` List []common.WithdrawOrder `json:"List"` } // WithdrawCancelReq 取消退出请求 type WithdrawCancelReq struct { ID uint `json:"ID" binding:"required"` } // PayResp 区块支付返回 type PayResp struct { Addr string `json:"Addr"` OrderID string `json:"OrderID"` }