印度包网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

142 lines
4.1 KiB

package values
import (
"server/common"
)
// WithdrawListReq 请求赠送列表
// Page 页码
// Num 一页的数目
// Start 开始时间戳
// End 结束时间戳
// Status 订单状态 1待审核,2打款中,3已完成,4打款失败,5玩家撤回,6拒绝打款
// Platform 设备类型
// Operator 操作人
// Sort 排序 1:按创建时间排序 2:按总充值金额 3:按总退出金额 4:按订单审核时间
type WithdrawListReq struct {
Page uint `json:"Page" binding:"required"`
Num uint `json:"Num" binding:"required"`
Type int `json:"Type" binding:"required"`
Start *string `json:"Start"`
End *string `json:"End"`
Status *int `json:"Status"`
Channel *int `json:"Channel"`
Platform *int `json:"Platform"`
UID *int `json:"UID"`
Amount *int `json:"Amount"`
OderID *string `json:"OderID"`
APIPayID *string `json:"APIPayID"`
PayChannel *int `json:"PayChannel"`
Operator *string `json:"Operator"`
Sort int `json:"Sort"`
OrderId *string `json:"OrderId"`
}
// WithdrawListResp 退出列表返回
type WithdrawListResp struct {
List []WithdrawInfo
PayList map[int]string
Count int64
}
// WithdrawInfo退出信息
// RegistTime 注册时间
// WithDrawPer 提存比
// RechargeTotal 充值总额
// WithDrawTotal 退出总额
// WithDrawCount 总退出次数
// PayAccountInfo 体现账户信息
// AuditTime 人工审核时间
// CallbackTime 支付回调时间
type WithdrawInfo struct {
ID int
UID int
CreateTime int64
OrderID string
APIPayID string
PayAccount string
Amount int64
PayChannel int
Status uint8
FailReason string
ChannelID int
AuditTime int64
CallbackTime int64
Operator string
Platform int
Mobile string
Tag string
Inr int64
TotalRecharge int64 `json:"RechargeTotal"`
TotalRechargeCount int64
TotalWithdrawing int64
TotalWithdraw int64 `json:"Totalwithdraw"`
TotalWithdrawCount int64 `json:"WithDrawCount"`
WithDrawPer int64 `json:"WithDrawPer"`
}
// WithdrawOrder 退出订单
// WithDrawTotal 退出总额
// RechargeTotal 充值总额
// WithDrawCount 退出次数
// Birth 注册时间
type WithdrawOrder struct {
common.WithdrawOrder
WithDrawTotal int64 `gorm:"column:total_withdraw"`
WithDrawCount int64 `gorm:"column:total_withdraw_count"`
RechargeTotal int64 `gorm:"column:total_charge"`
Birth int64
}
// WithdrawExamineReq 审核赠送
// id 审核条目的id
// Opt 审核状态 1 通过 2拒绝 3挂起
// Remark 备注
type WithdrawExamineReq struct {
ID int `json:"ID" binding:"required"`
Opt int `json:"Opt" binding:"required"`
PayChannel int `json:"PayChannel"` // 支付渠道
Remark string `json:"Remark"`
}
type TpDataReq struct {
Start string `json:"Start" binding:"required"`
End string `json:"End" binding:"required"`
}
type TpStatisticReq struct {
Start string `json:"Start" binding:"required"`
End string `json:"End" binding:"required"`
}
type TpStatisticResp struct {
List []TpStatisticData
}
type TpStatisticData struct {
Uid int // 用户id
Birth string // 注册日期
Cash int64 // 可退出金币
BindCash int64 // 不可退出金币
TpCount int64 // 玩tp局数
FirstRecharge int64 // 首充金额
AmountBeforeRecharge int64 // 充值前金额
TpCountBeforeRecharge int64 // 充值前玩tp局数
WithDrawAmount int64 // 退出金额
WithDrawCount int64 // 退出次数
WithDrawPer string // 退出成功率
}
// WithdrawReturnReq 退出退回
// OrderID 订单id
type WithdrawReturnReq struct {
OrderID string `json:"OrderID" binding:"required"`
}
// PayCallbackReq 充值订单回调
// OrderID 订单id
// Status 订单回调状态,2成功,4失败
type PayCallbackReq struct {
OrderID string `json:"OrderID" binding:"required"`
Status int `json:"Status" binding:"required"`
}