|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Cash int64
|
|
|
|
|
CanWithdraw int64
|
|
|
|
|
NeedBet int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PayInfo struct {
|
|
|
|
|
Amount int64 `json:"amount"`
|
|
|
|
|
Bonus int64 `json:"bonus"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RechargeInfoFirstResp struct {
|
|
|
|
|
List []PayInfo `json:"list"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DiscountTicket struct {
|
|
|
|
|
Id int
|
|
|
|
|
Discount int64
|
|
|
|
|
TimeLeft int64
|
|
|
|
|
Amount int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RechargeReq 充值请求 地址格式为:{"city":"Mumbai","street":"sarang street","houseNumber":"-54/a"}
|
|
|
|
|
type RechargeReq struct {
|
|
|
|
|
CurrencyType common.CurrencyType `json:"CurrencyType"`
|
|
|
|
|
PayChannel int `json:"PayChannel"`
|
|
|
|
|
|
|
|
|
|
DiscountTicketId int `json:"DiscountTicketId"` // 折扣券ID
|
|
|
|
|
|
|
|
|
|
Amount int64 `json:"amount"`
|
|
|
|
|
Bonus bool `json:"bonus"`
|
|
|
|
|
ProductID int `json:"productId"`
|
|
|
|
|
|
|
|
|
|
UserName *string `json:"userName"` // 用户姓名
|
|
|
|
|
UserPhone string `json:"userPhone"` // 用户手机号
|
|
|
|
|
UserEmail string `json:"userEmail"` // 用户邮箱
|
|
|
|
|
Address string `json:"address"` // 用户地址
|
|
|
|
|
DeviceNo *string `json:"deviceNo"` // 设备号
|
|
|
|
|
Device *string `json:"device"` // Android:MAC地址 IOS:IDFA
|
|
|
|
|
Model *string `json:"model"` // 机型
|
|
|
|
|
OperatorOs *string `json:"operatorOs"` // 操作系统,例如Android4.4
|
|
|
|
|
NewPayChannel *int `json:"newPayChannel"` // 新版本支付渠道,按玩家具体选择的发送
|
|
|
|
|
Scene int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RechargeHistoryReq 请求充值记录
|
|
|
|
|
type RechargeHistoryReq struct {
|
|
|
|
|
Page int `json:"page"` // 页码
|
|
|
|
|
PageSize int `json:"pageSize"` // 一页的数目
|
|
|
|
|
// 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 {
|
|
|
|
|
Type int `json:"Type" binding:"required"`
|
|
|
|
|
ChannelID *int `json:"ChannelID"` // 代付渠道选择
|
|
|
|
|
CurrencyType common.CurrencyType `json:"CurrencyType"`
|
|
|
|
|
// 可能对应多种结构
|
|
|
|
|
PayAccount map[string]interface{} `json:"payAccount" binding:"required"`
|
|
|
|
|
AmountID int `json:"amountID"`
|
|
|
|
|
Amount int64 `json:"amount"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawInfo struct {
|
|
|
|
|
AccountNumber string `json:"accountNumber" binding:"required"`
|
|
|
|
|
UserName string `json:"userName" binding:"required"`
|
|
|
|
|
IFSCCode string `json:"IFSCCode" binding:"required"`
|
|
|
|
|
BankName string `json:"bankName"`
|
|
|
|
|
BankBranchName string `json:"bankBranchName"`
|
|
|
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
|
|
|
Email string `json:"email"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawInfoSetReq struct {
|
|
|
|
|
WithdrawInfo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawInfoGetReq struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawInfoSetResp struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawInfoGetResp struct {
|
|
|
|
|
WithdrawInfo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
|
|
Cash int64 // 货币
|
|
|
|
|
CanWithdraw int64 // 可提现金额
|
|
|
|
|
NeedBet int64 // 打码信息
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithdrawHistoryReq 请求退出记录
|
|
|
|
|
type WithdrawHistoryReq struct {
|
|
|
|
|
Page int `json:"page"` // 页码
|
|
|
|
|
PageSize int `json:"pageSize" 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"`
|
|
|
|
|
}
|