印度包网
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.

560 lines
15 KiB

1 year ago
package values
import "server/common"
// GetGameUserListReq 获取游戏玩家列表
// Start 开始时间 等同于注册时间
// End 结束时间 等同于注册时间
// Status 筛选状态 1正常,2封禁
// Online 在线状态 1在线 2不在线
// Channel 渠道
// Country 国家
// Phone 手机
// UP 上级id
// Platform 登录类型 1h5 2pc 3手机h5 4手机原生
// vip 数组范围
// IsRecharge 1充值 2没充值
// Recharge 充值金额范围搜索
// RechargeCount 充值次数范围搜索
// Withdraw 赠送金额范围搜索
// LastLogin 最后登录时间范围搜索
// Cash 余额筛选
// Order 1总充值正序 2充值次数正序 3总赠送正序 4总赠送次数正序 5余额正序 6盈亏正序 7最后登录时间正序 8注册时间正序 / 以上排序序号改为负数则是逆序
type GetGameUserListReq struct {
// Order *int `json:"Order"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Start string `json:"Start" binding:"required"`
End string `json:"End" binding:"required"`
UID int
Channel int
Country string
Phone string
UP int
Status int
Platform int
VIP []int
IsRecharge int
Recharge []int64
RechargeCount []int64
Withdraw []int64
LastLogin []int64
Cash []int64
Order int
Online int
}
// GetGameUserListResp 获取游戏玩家列表
// UID 玩家uid
type GetGameUserListResp struct {
List []GUser
Count int64
}
type GameUserListTotal struct {
BrlTotal int64 // brl总量
RechargeBrlTotal int64
WithdrawBrlTotal int64
UsdtTotal int64 // usdt总量
RechargeUsdtTotal int64
WithdrawUsdtTotal int64
}
type GUser struct {
UID int
ChannelID int
Country string
Level int
Mobile string
Up int
Status int
Platform int
TotalRecharge int64
TotalRechargeCount int
TotalWithdraw int64
TotalWithdrawCount int
Brl int64
Diff int64
LastLogin int64
Birth int64
Tag string
Online int
}
// PlayCount 游戏场次
// GameCountPer 局数占比
type GUserGameStatistics struct {
GameCount int64 `json:"GameCount"`
GameCountPer string `json:"GameCountPer"`
}
// GetGameUserInfoReq 获取游戏玩家信息
// Data 查询条件 可以是玩家uid 或者手机号
// Phone 玩家手机号
type GetGameUserInfoReq struct {
Data interface{} `json:"Data"`
}
// GetGameUserInfoResp 返回玩家信息
// Nick 用户昵称
// Recharge 充值金额
// Withdraw 退出金额
// Channel 渠道
// Phone 手机号
// Birth 注册时间
// OpenID 注册fb或者google id
// CashBrl brl
// CashUsdt usdt
// Online 是否在线
// Status 账号状态 1正常 2封禁
// IP 最近一次登录ip
// LastLogin 最后一次登录时间
// Tag 标签
// UserGameInfo 用户游戏信息
// Gpsadid 玩家google广告ID
// AccountCount 账户数量
type GetGameUserInfoResp struct {
UID int
Nick string
Channel int
Phone string
OpenID string
CashBrl int64
WithdrawalBrl int64
CashUsdt int64
WithdrawalUsdt int64
RechargeBrl int64
WithdrawBrl int64
RechargeUsdt int64
WithdrawUsdt int64
Online bool
Status int
Birth int64
IP string
LastLogin int64
Tag string
UserGameData map[string][]UserGameInfo
OutputData map[string]string
Gpsadid string
SubAccount []int
Rtp int
1 year ago
}
2 months ago
type GetGameUserInfoV1Resp struct {
UID int
Nick string
Channel int
Phone string
OpenID string
CashBrl int64
WithdrawalBrl int64
CashUsdt int64
WithdrawalUsdt int64
RechargeBrl int64
WithdrawBrl int64
RechargeUsdt int64
WithdrawUsdt int64
Online bool
Status int
Birth int64
IP string
LastLogin int64
Tag string
UserGameData []UserGameInfo
OutputData map[string]string
Gpsadid string
SubAccount []int
Rtp int
}
1 year ago
type UserGameInfo struct {
2 months ago
GameId int `json:"GameId"`
WinPer string `json:"WinPer"`
WinCount int `json:"WinCount"`
WinProfit int `json:"WinProfit"`
LoseCount int `json:"LoseCount"`
LoseProfit int `json:"LoseProfit"`
Name string `json:"Name"`
Provider int `json:"Provider"`
GameName string
GameCount int64 // 游戏局数
Profit int64 // 利润
ProviderName string
1 year ago
}
// GetGameUserAllBalanceReq 获取游戏玩家所有流水详情
// UID 玩家uid
// Page 页码
// Num 一页的数目
// Start 开始时间戳
// End 结束时间戳
type GetGameUserAllBalanceReq struct {
UID int `json:"UID" binding:"required"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Start *int64 `json:"Start"`
End *int64 `json:"End"`
}
// GetGameUserAllBalanceResp 获取游戏玩家所有流水详情
// List 数据列表
// Count 总数目
type GetGameUserAllBalanceResp struct {
List []common.CurrencyBalance
Count int64
}
// GetGameUserPlayDataReq 获取游戏玩家牌局详情
// UID 玩家uid
// Page 页码
// Num 一页的数目
// Games 筛选游戏
// Start 开始时间戳
// End 结束时间戳
type GetGameUserPlayDataReq struct {
UID int `json:"UID" binding:"required"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Games *int `json:"Games"`
Start *int64 `json:"Start"`
End *int64 `json:"End"`
}
// GetGameUserPlayDataResp 获取游戏玩家牌局详情
// List 数据列表
// Count 总数目
type GetGameUserPlayDataResp struct {
List []OneGameUserPlayData
Count int64
}
// Time 时间
// GameID 游戏ID
// RoomName 场次
// Value 变化
// Balance 结余
// UUID 本局游戏的唯一id
// ProviderID
type OneGameUserPlayData struct {
Time int64
RoomName int
Value int64
Balance int64
UUID string
ProviderID int
2 months ago
GameID int
GameName string
1 year ago
}
// GetGameUserControlBalanceReq 获取游戏玩家控杀流水
// UID 玩家uid
// Page 页码
// Num 一页的数目
// Start 开始时间
// End 结束时间
type GetGameUserControlBalanceReq struct {
UID int `json:"UID" binding:"required"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Start string `json:"Start"`
End string `json:"End"`
ControlType *int `json:"control_type"`
}
// GetGameUserControlBalanceResp 获取游戏玩家控杀流水
// List 数据列表
// Count 总数目
// ControlCount 总控杀次数
// LuckCount 幸运次数
// ControlPer 控杀率
// LuckPer 幸运率
type GetGameUserControlBalanceResp struct {
List []common.CurrencyBalance
Count int64
ControlCount int64
LuckCount int64
ControlPer string
LuckPer string
}
// GetGameUserPlayDetailReq 获取某一局游戏的详细情况
// UID 用户id
// UUID 本局游戏的唯一id
type GetGameUserPlayDetailReq struct {
UID int `json:"UID" binding:"required"`
UUID string `json:"UUID" binding:"required"`
}
// GetGameUserPlayDetailResp 获取某一局游戏的详细情况
// UUID 本局游戏的唯一id
// GameId 游戏id 根据游戏id返回结构TP,RM,DVT
// Players 参与玩家输赢明细
type GetGameUserPlayDetailResp1 struct {
GameId int
Players []OneGameUserPlayDetail
DVTPlayer DVTGameUserPlayDetail
}
type GetGameUserPlayDetailResp struct {
GameId int
Result interface{}
History interface{}
}
type DVTGameUserPlayDetail struct {
UID int
Nick string
Result string // 开奖结果 龙:0, 平:1, 虎:2
DragonResult0 DVTGameUserPlayDetailInfo // 开龙
DragonResult2 DVTGameUserPlayDetailInfo // 开虎
DragonResult1 DVTGameUserPlayDetailInfo // 开平
}
type DVTGameUserPlayDetailInfo struct {
PurchasePer string // 购买占比 购买此区域总局数/总局数
VictoryPer string // 胜利占比 胜利局数/购买此区域总局数
}
type OneGameUserPlayDetail struct {
UID int
Nick string
Value int64
Cards string
IsRobot bool
ControlType int
}
// GetGameUserRechargeHistoryReq 获取游戏充值列表
// Status 筛选成功/失败的订单 1未支付 2成功 4失败
// UID 玩家uid 现支持uid查询或者订单号查询
// OrderID 订单号
// Page 页码
// Num 一页的数目
// Start 开始时间戳
// End 结束时间戳
type GetGameUserRechargeHistoryReq struct {
Status *int `json:"Status"`
UID int `json:"UID"`
OrderID string `json:"OrderID"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Start *int64 `json:"Start"`
End *int64 `json:"End"`
}
// GetGameUserRechargeHistoryResp 获取游戏充值列表
// List 列表
// Count 总数
// RechargeCount 充值笔数
// RechargeSuccessPer 充值成功率
// RechargeTotal 充值总额
type GetGameUserRechargeHistoryResp struct {
List []OneRechargeList
Count int64
RechargeCount int64
RechargeSuccessPer string
RechargeTotal int64
}
// Time 时间
// Amount 支付金额
// Status 支付结果 1未支付 2成功 4失败
// PayChannel 支付渠道
// PaySource 支付来源
type OneRechargeList struct {
UID int
Time int64
CallbackTime int64
Amount int64
Status int
MyOrderID string
OrderID string
PayChannel int
PaySource int
CurrencyType common.CurrencyType
}
// GetGameUserWithdrawHistoryReq 获取玩家游戏退出列表
// UID 玩家uid
// Page 页码
// Num 一页的数目
// Start 开始时间戳
// End 结束时间戳
// Data 查询条件,可以是订单号/手机号/银行卡
type GetGameUserWithdrawHistoryReq struct {
UID int `json:"UID"`
Data string `json:"Data"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Start *int64 `json:"Start"`
End *int64 `json:"End"`
}
// GetGameUserWithdrawHistoryResp 获取游戏退出列表
// List 列表
// Count 总数
// WithdrawCount 退出笔数
// WithdrawSuccessPer 退出成功率
// WithdrawTotal 退出总额
// WithdrawCash 退出货币数量
// WithdrawTax 退出税费
// WithDrawPer 提存比
type GetGameUserWithdrawHistoryResp struct {
List []OneWithdrawList
Count int64
WithdrawCount int64
WithdrawSuccessPer string
WithdrawTotal int64
WithdrawCash int64
WithdrawTax int64
RechargeTotal int64
WithDrawPer string
}
// Time 时间
// Amount 退出金额
// Status 退出结果 1未通过审核 2打款中 3已打款 4失败
// FailReason 失败原因
// PayAccount 退出账户信息
// OrderID 订单号
// OrderCreateAt 订单创建时间
// AuditTime 人工审核时间
// CallbackTime 支付回调时间
// Channel 渠道
type OneWithdrawList struct {
UID int
Time int64
Amount int64
Status int
FailReason string
PayAccount string
OrderID string
MyOrderID string
OrderCreateAt int64
AuditTime int64
CallbackTime int64
Channel int
}
// EditGameUserGoldReq 修改玩家金币
// Type 增加的类型 1增加不可退出货币 2增加可退出货币
// UID 玩家uid
// Amount 修改的数目,扣除就是负数
type EditGameUserGoldReq struct {
Type int `json:"Type" binding:"required"`
CurrencyType common.CurrencyType `json:"CurrencyType" binding:"required"`
UID int `json:"UID" binding:"required"`
Amount int64 `json:"Amount" binding:"required"`
}
type EditGameUserRtpReq struct {
UID int `json:"UID" binding:"required"`
Val int
}
1 year ago
// EditGameUserGoldReq 修改玩家状态,解封/封禁
// UID 玩家uid
// Status 修改的状态 1正常 2封禁
type EditGameUserStatusReq struct {
UID int `json:"UID" binding:"required"`
Status int `json:"Status" binding:"required"`
}
// ActiveUserList
type ActiveUserListReq struct {
Start string `json:"Start" binding:"required"`
End string `json:"End" binding:"required"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Channel *int
Status *int // 1 新用户, 2老用户, 不传就是所有
}
type ActiveUserListResp struct {
List []ActiveUserInfo
Count int64
}
type ActiveUserOne struct {
ID int
Nick string
Status int
Birth int64
Cash int64
BindCash int64
Online int
Time int64
TotalCharge int64
TotalWithdraw int64
}
type ActiveUserInfo struct {
UID int64 // 用户uid
Nick string // 用户昵称
Status int // 帐号状态
Birth int64 // 注册日期
LastLogin int64 // 最后登录时间
TodayCount int64 // 今日局数
GameCount int64 // 游戏局数
WinPer string // 胜率
Recharge int64 // 充值金额
Withdraw int64 // 退出金额
Cash int64 // 可退出现金
TotalCash int64 // 总金额
Online int // 1在线2不在线
}
// RechargeRankReq 充值排行榜
type RechargeRankReq struct {
Start string `json:"Start" binding:"required"`
End string `json:"End" binding:"required"`
Channel *int
Status int // 1 表示充值, 2 表示退出
Num *int64 // 数量,默认100
}
type RechargeRankResp struct {
List []*RechargeRank
Count int64
}
type RechargeRank struct {
Date int64 // 时间
Uid int // 玩家id
Birth int64 // 玩家注册日期
Channel int // 玩家渠道
TodayRechargeAmount int64 // 今天充值总金额
TodayRechargeOrderCount int64 // 今日成功充值订单数
TodayWithDrawAmount int64 // 今日退出金额
TodayWithDrawOrderCount int64 // 今日成功退出订单数
RechargeAmount int64 // 总充值金额
WithDrawAmount int64 // 总退出金额
}
type BanUserListReq struct {
Start string `json:"Start" binding:"required"`
End string `json:"End" binding:"required"`
Page int `json:"Page" binding:"required"`
Num int `json:"Num" binding:"required"`
Channel *int
}
type BanUserListResp struct {
List []*BanUserInfo
Count int64
}
type BanUserInfo struct {
common.ESBlackList
Recharge int64 // 充值金额
Withdraw int64 // 退出金额
Birth int64 // 注册日期
Channel int // 渠道
}
// 将指定玩家相关信息拉入黑名单
type AddUserBlackListReq struct {
UID int `json:"UID" binding:"required"`
}