package values import ( "server/common" ) const ( AreaIndia = iota + 1 ) const ( StartTime = 1640975400 StartDate = "2020-01-01" ) // KeepData 留存数据 type KeepData struct { Date string Type int // 1活跃留存 2新增留存 3活跃付费留存 4新增付费留存 Time int64 Channel int NewCount int64 K1 string // 次留 K2 string K3 string // 3留 K4 string K5 string K6 string K7 string // 7留 K8 string // 8留 K9 string // 9留 K10 string // 10留 K11 string // 11留 K12 string // 12留 K13 string // 13留 K14 string // 14留 K15 string // 15留 K30 string // 30留 } // ReviewDataReq 请求数据总览 // Area 地区 1 印度 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Platform 平台 1 goole 2 vivo // ChannelID 渠道id // Start 开始时间 格式"2022-02-23",月日必须是两位数,个位数时,高位要用0填充 // End 结束时间 // Page 页码 type ReviewDataReq struct { Area int `json:"Area" binding:"required"` Games *string `json:"Games"` Platform *int `json:"Platform"` ChannelID *int `json:"ChannelID"` ChannelIDs *[]*int `json:"ChannelIDs"` Start string `json:"Start"` End string `json:"End"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` } // ReviewDataResp 请求数据总览返回 // New 当天新注册用户 // Active 当天活跃用户 // Play 当天玩牌用户 // Recharge 当天付费用户 // TotalRecharge 当天付费充值总额 // ChannelData 渠道数据 // Total 汇总数据 type ReviewDataResp struct { // New int64 // Active int64 // Play int64 // Recharge int64 // TotalRecharge int64 PlatformData []*ReviewData Total *ReviewData Count int64 // CompaireData *Compaire } type ReviewDataEditReq struct { Time int64 `json:"Time" binding:"required"` Channel int ADFee *int64 Remark *string } // ReviewChannelDataReq 请求数据总览渠道详细数据 // ChannelID 渠道id // Start 开始时间 // End 结束时间 type ReviewChannelDataReq struct { ChannelID int `json:"ChannelID" binding:"required"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` } // ReviewChannelDataResp 请求数据总览渠道详细数据 // PlatformData 数据返回 // Total 汇总数据 type ReviewChannelDataResp struct { PlatformData []*ReviewData Total *ReviewData } // ReviewLoginWayReq 请求各登录方式人数 // ChannelID 渠道id // Start 开始时间 // End 结束时间 type ReviewLoginWayReq struct { ChannelID *int `json:"ChannelID"` Start string `json:"Start"` End string `json:"End"` } // ReviewLoginWayResp 请求各登录方式人数 // List 各登录方式键值对,0游客 1手机 2fb 3gp type ReviewLoginWayResp struct { List map[int]int64 } // ReviewWithdrawDataReq 请求退出人数具体分类 // ChannelID 渠道id // Start 开始时间 // End 结束时间 type ReviewWithdrawDataReq struct { ChannelID *int `json:"ChannelID"` Start string `json:"Start"` End string `json:"End"` } // ReviewWithdrawDataResp 请求退出人数具体分类 // List 退出人数分类,数组按顺序依次为活跃用户,新增用户,首次退出人数 type ReviewWithdrawDataResp struct { List []OneReviewWithdrawData } // OneReviewWithdrawData 退出人数分类 // Count 人数 // AVG 平均次数 type OneReviewWithdrawData struct { Count int64 AVG string } // ReviewPlatformData 首页渠道数据 // Date 日期 // Time 零点时间戳 // ChannelID 渠道id // NewCount 完成注册数 // DownloadCount 当天下载数 // NewPlayCount 新增玩牌人数 // NewRegisterPer 新增注册率 = 新增注册用户/新增安装用户 // NewPlayPer 新增玩牌率 = 新增玩牌/新增注册 // NewPlayTime 新增用户平均玩牌时长 // NewPayCount 新增付费人数 // NewPayAmount 新增付费总额 // NewPayPer 新增付费率 = 新增付费人数/新增注册人数 // NewARPU 新增ARPU = 新增付费总额/新增注册人数 // OldCount 老用户活跃人数 // OldPayCount 老用户付费人数 // OldPayAmount 老用户付费总额 // OldPlayCount 老用户玩牌数 // OldPayPer 老用户付费率 = 老用户付费人数/老用户活跃人数 // OldPlayPer 老用户玩牌率 = 当天老用户玩牌人数/老用户数 // OldPlayTime 老用户平均玩牌时长 // ActivePayPer 活跃付费率 = 所有付费人数/活跃人数 // ActivePlayPer 活跃玩牌率 = 当天活跃玩牌人数/活跃用户数 // ActivePlayTime 活跃玩牌时长 // ActiveCount 活跃用户 = 新增用户数 + 老用户数 // ActivePayCount 活跃付费人数 = 新增用户付费人数 + 老用户付费人数 // ActivePlayCount 活跃玩牌数 = 新用户玩牌人数 + 老用户玩牌人数 // ActiveARPU 付费总额/活跃用户(新用户 + 老用户) // ARPPU 每付费用户收益= 付费总额/付费用户数 // RechargeTotal 付费总额 = 新用户付费 + 老用户付费 // WithdrawTotal 退出总额 当天所有退出成功总额 // WithdrawPer 退出比例 退出总额/充值总额 // WithdrawCount 退出比数 成功笔数 // WithdrawPlayerNum 退出人数 // WithdrawSuccess 退出成功率 // WithdrawPlayerSuccess 人次成功率 // NewPayPerTotal 新增付费占比 = 新增付费/总付费 type ReviewPlatformData struct { Date string Time int64 PlatformID int NewCount int64 DownloadCount int64 // NewPlayCount int64 NewRegisterPer string // NewPlayPer string // NewPlayTime string NewPayCount int64 NewPayPer string FirstPayCount int64 FirstPayPer string NewPayAmount int64 // NewARPU string // OldCount int64 // OldPayCount int64 // OldPayAmount int64 // OldPlayCount int64 // OldPayPer string // OldPlayPer string // OldPlayTime string // ActivePayPer string // ActivePlayPer string // ActivePlayTime string ActiveCount int64 // ActivePlayCount int64 ActivePayCount int64 // ActiveARPU string // ARPPU string RechargeTotal int64 WithdrawTotal int64 WithdrawPer string // WithdrawCount int64 WithdrawPlayerNum int64 WithdrawSuccess string WithdrawPlayerSuccess string RechargeBrl int64 // RechargeUsdt int64 WithdrawBrl int64 // WithdrawUsdt int64 NewPayPerTotal string PayWithdrawDiff int64 RTP string } // RealDataReq 请求实时 // Area 地区 1 印度 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Start 开始时间 // End 结束时间 // Channel 渠道 type RealDataReq struct { // Area int `json:"Area" binding:"required"` // Games *string `json:"Games"` Start string `json:"Start"` End string `json:"End"` Channel *int `json:"Channel"` // GameID int `json:"GameID"` } // RealDataResp 请求数据总览返回 type RealDataResp struct { Active int64 Regist int64 Online int TotalRechargeOrder int64 FinishRechargeOrder int64 RechargeSuccessPer string TotalWithdrawOrder int64 FinishWithdrawOrder int64 WithdrawSuccessPer string TotalRechargeData RealRechargeData NewRechargeData RealRechargeData OldRechargeData RealRechargeData BetData RealBetData BetGameData []*OneGameData WinGameData []*OneGameData LoseGameData []*OneGameData ActivityData []*RealActivityData } type RealRechargeData struct { RechargePlayerNum int64 TotalRecharge int64 Arppu string } type RealBetData struct { TotalBet int64 RealBet int64 RealSettle int64 RealProfit int64 BonusBet int64 BonusSettle int64 BonusProfit int64 } type OneGameData struct { GameID int GameName string Name string Provider int Amount int64 } type RealActivityData struct { ActivityID int ClickCount int64 JoinCount int64 Reward int64 } // RealDataBalanceReq 请求实时 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Start 开始时间 // End 结束时间 // Games 游戏类型 // Channel 渠道 type RealDataBalanceReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Games *string `json:"Games"` Channel *int `json:"Channel"` } // RealDataBalanceResp 请求数据总览返回 type RealDataBalanceResp struct { Online map[string]interface{} // 当前在线人数 List []RealDataBalance `json:"List"` } type OnlineData struct { Total int64 `redis:"Total"` New int64 `redis:"New"` } type RealDataBalance struct { Date int64 // 日期 Online int64 // 当前在线人数 NewCount int64 `gorm:"column:NewCount"` // 新用户总数 Profit int64 // 总利润 (所有场次AI盈亏+百人场系统盈亏) TableFee int64 // 总台费 RoomGame map[string]RoomGameBalanceData // string 表示房间游戏id MillionGame map[string]MillionGameBalanceData // string 表是百人游戏id } type RoomGameBalanceData struct { BetTotal int64 // 下注总额 Profit int64 // 总利润 TableFee int64 // 总台费 Active int64 // 活跃人数 } type MillionGameBalanceData struct { TableFee int64 // 总台费 Profit int64 // 总利润 Active int64 // 活跃人数 } type RealBalanceDataRoomGameReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` // 渠道 不传就是所有 } type RealBalanceDataRoomGameResp struct { List map[string]RoomGameData // string表示游戏id } type RoomGameData struct { Date int64 // 日期 GameId int // 游戏id Online int64 // 在线人数 OnlineNew int64 // 在线新用户数 Active int64 // 活跃人数 Bet int64 // 下注 Profit int64 // 利润 Fee int64 // 台费 DropPer string // 棋牌率 RoomData map[string]RoomGameRealData // 房间id } type RoomGameRealData struct { Active int64 // 活跃人数 Bet int64 // 下注 Profit int64 // 利润 Fee int64 // 台费 DropPer string // 弃牌占比 (弃牌局数/该场总局数) GameCount int64 // 游戏局数 ControlKillCount int64 // 控杀局数 ControlFreeCount int64 // 控放局数 } type RealBalanceDataMillionGameReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` // 渠道 不传就是所有 } type RealBalanceDataMillionGameResp struct { List []BalanceDataMillionGame } type BalanceDataMillionGame struct { GameId int // 游戏id Online int64 // 在线用户 OnlineNew int64 // 在线新用户 Active int64 // 活跃用户 Profit int64 // 利润 TableFee int64 // 台费 RoomDetail []BalanceDataMillionGameRoom // 细则 string表示房间id } type BalanceDataMillionGameRoom struct { RoomId int // 房间id GameCount int64 // 游戏局数 BetAmount int64 // 下注金额 Profit int64 // 利润 Active int64 // 活跃人数 Detail []MillionGameDetail // 细则 } type MillionGameDetail struct { Result string // 结果 BetAmount int64 // 下注金额 BetCount int64 // 下注次数 WinCount int64 // 开奖次数 Profit int64 // 利润 } // GameDataReq 请求游戏概况 // Channel 渠道 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Start 开始时间 // End 结束时间 type GameDataReq struct { Channel *int `json:"Channel"` Games *string `json:"Games"` Start string `json:"Start"` End string `json:"End"` } // GameDataResp 请求游戏概况返回 // New 当天新注册用户 // Active 当天活跃用户 // Play 当天玩牌用户 // TotalRecharge 当天付费充值总额 // ARPPU 总收入/付费用户数 type GameDataResp struct { New int64 Active int64 Play int64 TotalRecharge int64 ARPPU string } // NewPlayerDataReq 请求新增用户分析数据 // Channel 渠道 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Start 开始时间 // End 结束时间 type NewPlayerDataReq struct { Channel *int `json:"Channel"` Games *string `json:"Games"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` } // NewPlayerDataResp 请求新增用户分析数据返回 // New 新注册用户 // PlayPer 新增玩牌率 // NewRechargePer 首日付费率 // NewRechargeCount 首日付费人数 // NewRecharge 首日付费额度 // Map1 新增/玩牌/付费 图表 // Map2 付费额度/ARPPU 图表 // Map3 新增玩牌率 图表 // Map4 破产 图表 type NewPlayerDataResp struct { New int64 PlayPer string NewRechargePer string NewRechargeCount int64 NewRecharge int64 Map1 map[string]NewPlayerDataMap1 Map2 map[string]NewPlayerDataMap2 Map3 map[string]NewPlayerDataMap3 Map4 map[string]NewPlayerDataMap4 } // New 新注册用户 // NewPlayCount 新增玩牌 // NewRechargeCount 首日付费人数 type NewPlayerDataMap1 struct { New int64 NewPlayCount int64 NewRechargeCount int64 } // Recharge 首日付费额度 // ARPPU type NewPlayerDataMap2 struct { Recharge int64 ARPPU string } // NewPlayCount 新增玩牌率 // NewRechargePer 首日付费率 type NewPlayerDataMap3 struct { NewPlayCount string NewRechargePer string } // BrekPer 新增破产率 type NewPlayerDataMap4 struct { BrekPer string } // ActivePlayerDataReq 请求活跃用户分析数据 // Channel 渠道 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Start 开始时间 // End 结束时间 type ActivePlayerDataReq struct { Channel *int `json:"Channel"` Games *string `json:"Games"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` } // ActivePlayerDataResp 请求活跃用户分析数据返回 // Active 活跃用户数 // ActivePlayPer 活跃玩牌率 // RechargePer 付费渗透率 // Map1 新增/活跃 图表 // Map2 DAU/MAU 图表 // Map3 玩牌/破产/付费 图表 // Map4 付费总额/ARPU 图表 type ActivePlayerDataResp struct { Active int64 ActivePlayPer string RechargePer string Map1 map[string]ActivePlayerDataMap1 Map2 map[string]ActivePlayerDataMap2 Map3 map[string]ActivePlayerDataMap3 Map4 map[string]ActivePlayerDataMap4 } // Active 活跃用户数 // New 新注册用户 type ActivePlayerDataMap1 struct { Active int64 New int64 } // DMAU 日活跃用户/月活跃用户 type ActivePlayerDataMap2 struct { DMAU string } // ActivePlayPer 活跃玩牌率 // RechargePer 付费渗透率 type ActivePlayerDataMap3 struct { ActivePlayPer string RechargePer string } // Recharge 付费总额 // ARPU 总收入/活跃总人数 type ActivePlayerDataMap4 struct { Recharge int64 ARPU string } // FinancialDataReq 请求游戏经济分析数据 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataResp1 请求游戏经济分析数据返回 type FinancialDataResp1 struct { List []*OneFinancialData Total *OneFinancialData } // OneFinancialData 每日系统货币统计数据 // Date 日期 // PlayerBalance 用户货币 // PlayerCash 可退出货币 // RobotBalance AI盈亏 // MillionBalance 百人场系统盈亏 // Active 活跃用户 // RobotWin 机器人赢取用户金币数量 // PlayerWinTotal 用户总赢流水 // TableFee 台费 // ActiveCash 近7日活跃用户的可退出货币 // ActiveCashPlayer 近7日可退出的活跃用户人数 // BlackWinTotal 小黑屋回收 type OneFinancialData struct { Date string CurrencyDetails CurrencyDetails // 货币明细 DetailsOfMonetaryIncome DetailsOfMonetaryIncome // 货币收益明细 MonetaryOutputDetails MonetaryOutputDetails // 货币产出明细 BankruptcyDetails BankruptcyDetails // 破产明细 } // 货币明细 type CurrencyDetails struct { PlayerBalance int64 // 用户货币 PlayerCash int64 // 可退出货币 ActiveCash int64 // 近7日活跃用户的可退出货币 ActiveCashPlayer int64 // 近7日可退出的活跃用户人数 } // 货币收益明细 type DetailsOfMonetaryIncome struct { TableFee int64 // 台费 RobotBalance int64 // AI盈亏 MillionBalance int64 // 百人场系统盈亏 TotalMonetaryIncome int64 // 货币总收益 货币总收益=现有AI盈亏+百人场盈亏+台费 // RoomGame map[string]map[string]RoomGameIncomeDetails // 1.string 游戏id 2.string 场次id // MillionGame map[string]map[string]MillionGameIncomeDetails // 1.string 游戏id 2.string 场次id } // 收益明细 type RoomGameIncomeDetails struct { Profit int64 // 盈亏 TableFee int64 // 台费 } // 收益明细 type MillionGameIncomeDetails struct { Profit int64 // 盈亏 } // 货币产出明细 type MonetaryOutputDetails struct { RechargeGift int64 // 充值货币 RegisGift int64 // 注册赠送货币 SignGift int64 // 签到赠送货币 ShareGift int64 // 分享赠送 ActivityGift int64 // 活动赠送 TotalMonetaryOutput int64 // 货币总产出=现有注册赠送+签到赠送+充值货币 } // 破产明细 type BankruptcyDetails struct { BankruptcyDetailsInfo NewUser BankruptcyDetailsInfo // 新用户破信息 OldUser BankruptcyDetailsInfo // 老用户破产信息 } // 破产明细信息 type BankruptcyDetailsInfo struct { BreakCount int64 // 破产总人数 BreakPer string //破产率 } // FinancialDataResp 请求游戏经济分析数据返回 // SysOut 系统产出 // RegistAmount 注册赠送 // WithDrawAmount 退出货币 // SysIn 系统回收 // PlayerBalance 用户身上游戏币流水结余总额 // PlayerStock 用户身上游戏币总额 // FreeOut 系统免费产出 // RechargeOut 付费产出 // BreakCount 破产人数 // BreakPer 破产率 // Map1 系统产出 系统消耗 系统流水结余 图表 // Map2 系统免费产出 系统付费产出 图表 type FinancialDataResp struct { SysOut int64 RegistAmount int64 WithDrawAmount int64 SysIn int64 PlayerBalance int64 PlayerStock int64 FreeOut int64 RechargeOut int64 BreakCount int64 BreakPer string Map1 map[string]FinancialDataMap1 Map2 map[string]FinancialDataMap2 } // FinancialDataRobotDetailReq 请求游戏经济分析ai盈亏详情 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataRobotDetailReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataRobotDetailResp 请求游戏经济分析ai盈亏详情 // Detail 按游戏id区分数据场次数据 type FinancialDataRobotDetailResp struct { Detail map[int][]int64 } // FinancialDataMillionDetailReq 请求游戏经济分析百人场盈亏详情 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataMillionDetailReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataRobotDetailResp 请求游戏经济分析百人场盈亏详情 // Detail 按游戏id区分数据 type FinancialDataMillionDetailResp struct { Detail map[int][]int64 } // SysOut 系统产出 // SysIn 系统消耗 // Balance 系统流水结余 type FinancialDataMap1 struct { SysOut int64 SysIn int64 Balance int64 } // FinancialDataTableFeeReq 请求游戏经济分析台费详情 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataTableFeeReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataTableFeeResp 请求游戏经济分析台费详情 // Detail 按游戏id区分数据 type FinancialDataTableFeeResp struct { Detail map[string]map[string]int64 // 1.int 游戏Id 2.int 房间Id 3.台费 } // FinancialDataPlayerWinReq 请求游戏经济分析系统调控回收详情 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataPlayerWinReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataPlayerWinResp 请求游戏经济分析系统调控回收详情 // Detail 按游戏id区分数据 type FinancialDataPlayerWinResp struct { Detail map[int][]int64 } // FinancialDataRobotWinReq 请求游戏经济分析系统机器人回收详情 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataRobotWinReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataRobotWinResp 请求游戏经济分析系统机器人回收详情 // Detail 按游戏id区分数据 type FinancialDataRobotWinResp struct { Detail map[int][]int64 } // FinancialDataBlackReq 请求游戏经济分析系统机器人小黑屋回收详情 // Start 开始时间 // End 结束时间 // Channel 渠道号 type FinancialDataBlackReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // FinancialDataBlackResp 请求游戏经济分析系统机器人小黑屋回收详情 // Detail 按游戏id区分数据 type FinancialDataBlackResp struct { Detail map[int][]int64 } // FreeOut 系统免费产出 // RechargeOut 系统付费产出 type FinancialDataMap2 struct { FreeOut int64 RechargeOut int64 } // RechargeDataReq 请求付费分析数据 // ChannelID 渠道id // Start 开始时间 // End 结束时间 type RechargeDataReq struct { Start string `json:"Start"` End string `json:"End"` ChannelID *int `json:"ChannelID"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` // Games *string `json:"Games"` } // RechargeDataResp1 新付费分析返回 // List 按包列出渠道数据 type RechargeDataResp1 struct { List []OneRechargeData Total OneRechargeData Count int64 } // RechargeStatistics 付费统计 // GiftBag 礼包参数 // Count 购买礼包数量 // RechargePer 购买比( 购买人数 / 总购买人数) type RechargeStatistics struct { GiftBag int Count int64 RechargePer string } // Date 时间 // Channel 渠道id // NewCount 新增用户数 // RechargeCount 充值笔数 当天充值成功笔数 // RechargePlayerNum 充值用户数 // RechargeTotal 充值总额 // WithdrawTotal 退出总额 // WRPer 退出比例 退出总额/充值总额 // Profit 利润 充值总额-退出总额 // ARPU 总收入/活跃总人数 // ARPPU 总收入/付费用户数 // RechargePer 付费渗透率 付费人数/DAU // RechargeStatisticsList 消费统计 type OneRechargeData struct { Date string Channel int NewCount int64 RechargeCount int64 RechargePlayerNum int64 RechargeTotal int64 WithdrawTotal int64 WRPer string Profit int64 ARPU string ARPPU string RechargePer string RechargeStatisticsList []RechargeStatistics } // RechargeChannelDataReq 请求充值渠道详细数据 // ChannelID 渠道id // Start 开始时间 // End 结束时间 type RechargeChannelDataReq struct { ChannelID int `json:"ChannelID" binding:"required"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` } // RechargeChannelDataResp 请求充值渠道详细数据 // List 数据返回 type RechargeChannelDataResp struct { List []OneRechargeData } // RechargeDataResp 请求付费分析数据返回 // RechargeCount 付费用户数 // RechargeTotal 付费总金额 // ARPU 总收入/活跃总人数 // ARPPU 总收入/付费用户数 // RechargePer 付费渗透率 付费人数/DAU // RechargeFirst 首付用户数 // Map1 付费用户数/首付用户数 图表 // Map2 付费总额/首付金额/ARPPU 图表 type RechargeDataResp struct { RechargeCount int64 RechargeTotal int64 ARPU string ARPPU string RechargePer string RechargeFirst int64 Map1 map[string]RechargeDataMap1 Map2 map[string]RechargeDataMap2 } // RechargeCount 付费用户数 // FirstRechargeCount 首付用户数 type RechargeDataMap1 struct { RechargeCount int64 FirstRechargeCount int64 } // RechargeTotal 付费总额 // FirstRechargeAmount 首付金额 // ARPPU 总收入/付费用户数 type RechargeDataMap2 struct { RechargeTotal int64 FirstRechargeAmount int64 ARPPU string } // PlayDataReq 请求用户牌局分析数据 // Channel 渠道 // Games 查询的游戏 不发就是查所有游戏 游戏列表通过common接口获取 // Start 开始时间 // End 结束时间 type PlayDataReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` Games *string `json:"Games"` } // PlayDataResp 请求用户牌局分析数据返回 // Play 玩牌用户数 // NewPlay 注册玩牌用户 // GameCount 牌局数 // ActivePlayPer 活跃玩牌率 // NewPlayerPer 注册玩牌率 // Map1 玩牌用户数/注册玩牌用户数 图表 // Map2 活跃玩牌率/注册玩牌率 图表 // Map3 各游戏玩牌统计 图表 type PlayDataResp struct { Play int64 NewPlay int64 GameCount int64 ActivePlayPer string NewPlayerPer string Map1 map[string]PlayDataMap1 Map2 map[string]PlayDataMap2 Map3 map[int]int64 Map4 []PlayDataInfo } type PlayGameDataResp struct { List []PlayDataInfo } type PlayDataInfo struct { Date int64 // 日期 PlayerGameData GameData map[string]PlayerGameData // string 表示房间游戏id } type PlayerGameData struct { PlayerCount int64 // 玩家总人数 GameCount int64 // 游戏总局数 } type PlayGameDataReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` GameId int `json:"GameId" binding:"required"` } type PlayRoomGameDataResp struct { List []RoomStatisticsInfo } type PlayMillionGameDataResp struct { List []MillionStatisticsInfo } type RoomStatisticsInfo struct { Date int64 //时间 PlayerCount int64 // 玩家总人数 GameCount int64 // 游戏总局数 RoomGameData map[string]GameStatisticsData // string 表示场次 } type GameStatisticsData struct { GameCount int64 `json:"GameCount"` // 游戏局数 PlayerCount int64 `json:"PlayerCount"` // 玩家人数 WinPer string `json:"WinPer"` // 胜率 Break string `json:"Break"` // 破产率 } type MillionStatisticsInfo struct { Date int64 // 日期 GameCount int64 // 总局数 PlayerCount int64 // 总人数 Profit int64 // 总利润 (算法:用户下注金额-中奖发放金额) MillionGameData map[string]map[string]interface{} // 1.string 表示场次 2.string 表示返回结果 3.interface (MillionGameStatisticsData || map[string]int64) } type MillionGameStatisticsData struct { GameCount int64 `json:"GameCount"` // 游戏局数 WinPer string `json:"WinPer"` // 胜率 GameCountPer string `json:"GameCountPer"` // 局数占比 Balance int64 `json:"Balance"` // 盈亏数量 } type PlayGameRoomDataReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` GameId *int `json:"GameId"` RoomId *int `json:"RoomId"` } type PlayGameRoomDataResp struct { List []PlayGameRoomDataInfo } type PlayGameRoomDataInfo struct { Date int64 // 日期 GameId int // 游戏Id ControlType int // 控制类型 Amount int64 // 金额 GameCount int64 // 游戏局数 WinPer string // 胜率 } // PlayCount 玩牌用户数 // NewPlayCount 注册玩牌用户数 type PlayDataMap1 struct { PlayCount int64 NewPlayCount int64 } // ActivePlayPer 活跃玩牌率 // NewPlayPer 注册玩牌率 type PlayDataMap2 struct { ActivePlayPer string NewPlayPer string } // KeepDataReq 请求用户留存数据数据 // Channel 渠道 // Start 开始时间 // End 结束时间 // ActiveKeep 1活跃留存/2新增留存/3活跃付费留存/4新增付费留存 type KeepDataReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` ActiveKeep int `json:"ActiveKeep"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` } // KeepDataResp 请求用户牌局分析数据返回 // List 键值对形式返回数据,key为日期,value为留存数据 type KeepDataResp struct { List []KeepData Count int64 Total KeepData } // WithdrawDataReq 请求退出统计数据 // Area 地区 1 印度 // Start 开始时间 // End 结束时间 // Page 页码 // Num 一页的数目 type WithdrawDataReq struct { Area *int `json:"Area"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` } // WithdrawDataResp 请求退出统计数据返回 // List 数据 type WithdrawDataResp struct { List []OneWithdrawData } // OneWithdrawData 单条退出统计数据 // Date日期 // Active 活跃用户 // WithdrawNum 退出人数 // WithdrawTotal 退出笔数 // SuccessCount 成功笔数 // RefuseCount 拒绝笔数 // WithdrawPer 退出率 // SuccessPer 成功率 // WithdrawAmount 退出总额 // DayRecharge 当天充值总额 // WithdrawCost 退出对应扣除的金币数量 // PayingCount 打款中 // FailCount 失败 // WithdrawSuccessAmount 退出成功总额 // PayingAmount 打款中的金额 type OneWithdrawData struct { Date string Active int64 WithdrawNum int64 WithdrawTotal int64 SuccessCount int64 RefuseCount int64 WithdrawPer string SuccessPer string WithdrawAmount int64 DayRecharge int64 WithdrawCost int64 PayingCount int64 FailCount int64 WithdrawSuccessAmount int64 PayingAmount int64 } // WithdrawDetailReq 请求退出详细统计数据 // Area 地区 1 印度 // Start 开始时间 // End 结束时间 // Page 页码 // Num 一页的数目 type WithdrawDetailReq struct { Area *int `json:"Area"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` } // WithdrawDetailResp 请求退出统计数据返回 // List 数据 type WithdrawDetailResp struct { List []OneWithdrawDetail } // OneWithdrawDetail 个人退出详细数据 // UID uid // WithdrawCount 退出笔数 // SuccessCount 成功退出笔数 // RefuseCount 拒绝笔数 // SuccessPer 成功率 // WithdrawAmount 退出总额 // RechargeTotal 用户充值总金额 // RegistTime 注册时间 // WithDrawPer 提存比 type OneWithdrawDetail struct { UID int WithdrawCount int64 SuccessCount int64 RefuseCount int64 SuccessPer string WithdrawAmount int64 RechargeTotal int64 RegistTime int64 WithDrawPer string } // RechargeOrderListReq 请求充值订单列表 // Channel 渠道 // Status 筛选成功/失败的订单 1未支付 2成功 4失败 // Start 开始时间 // End 结束时间 // Page 页码 // Num 一页的数目 // Birth 生日 // Sort 排序 1:按创建时间排序 2:按历史充值排序 3:当前订单金额 type RechargeOrderListReq struct { Channel *int `json:"Channel"` PayChannels []int `json:"PayChannels"` Status *int `json:"Status"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` Birth *string `json:"Birth"` Sort int `json:"Sort"` Uid *int `json:"Uid"` } type OneRechargeOrderList struct { Channel int // 渠道 CreatedTime int64 // 开始时间 CallbackTime int64 // 回调时间 Nick string // 昵称 UID int // 用户id OrderID string // 订单id Amount int64 // 当前订单金额 Status int // 订单状态 Birth int64 // 生日 OrderCount int64 // 订单总数 OrderSuccessCount int64 // 成功订单数 TotalAmount int64 // 历史充值金额 ProductId int // 商品id ActivityId int // 活动id PayChannel int // 支付渠道 PaySource int // 支付来源 } type RechargeOrderListResp struct { List []OneRechargeOrderList Count int64 Amount int64 // 货币数量 } // WithdrawOrderListReq 请求退出订单列表 // Channel 渠道 // Status 筛选成功/失败的订单 1未支付 2打款中 3成功 4失败 // Start 开始时间 // End 结束时间 // Page 页码 // Num 一页的数目 // Sort 1:按创建时间排序 2:按退出金额排序 type WithdrawOrderListReq struct { Channel *int `json:"Channel"` Status *int `json:"Status"` Start string `json:"Start"` End string `json:"End"` Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` Sort int `json:"Sort"` Uid *int `json:"Uid"` } // WithdrawOrderListResp 请求退出订单列表 // WithdrawTotal 退出总额 // WithdrawCount 退出笔数 // WithdrawSuccess 退出成功率 type WithdrawOrderListResp struct { WithdrawTotal int64 WithdrawCount int64 WithdrawSuccess string List []OneWithdrawOrderList Count int64 } // Time 时间 // Amount 退出金额 // Status 退出结果 1未通过审核 2打款中 3已打款 4失败 // PayAccount 退出账户信息 // OrderID 订单号 // Birth 用户注册时间 // TotalWithdraw 历史退出 // WithDrawPer 提存比 // PayChannel 支付渠道 // PaySource 支付来源 type OneWithdrawOrderList struct { Channel int UID int Time int64 FinishTime int64 Amount int64 Status int FailReason string PayAccount string OrderID string MyOrderID string Birth int64 TotalWithdraw int64 WithDrawPer string PayChannel int // 支付渠道 PaySource int // 支付来源 } // ShareDataReq 请求分享数据 // Channel 渠道 // Start 开始时间戳 // End 结束时间戳 // Page 页码 // Num 一页的数目 // type ShareDataReq struct { // Channel *int `json:"Channel"` // Start string `json:"Start" binding:"required"` // End string `json:"End" binding:"required"` // Page int `json:"Page" binding:"required"` // Num int `json:"Num" binding:"required"` // } // ShareCount 分享点击次数 // SharePlayer 分享人数 // SharePer 分享转化率 分享成功,用户打开分享链接的次数/分享总次数 // DownloadCount 下载点击次数 // BindCount 成功绑定人数 // BindPer 绑定成功率 // RewardTotal 奖励总数 // DrawTotal 领取奖励总数 // type ShareDataResp struct { // ShareCount int64 // SharePlayer int64 // SharePer string // DownloadCount int64 // BindCount int64 // BindPer string // RewardTotal int64 // DrawTotal int64 // List []OneShareInfo // Count int // } // ShareCount 分享次数 // ClickCount 点击链接次数 // DownloadCount 点击下载次数 // OpenCount 打开次数 // BindCount 成功绑定次数 // BindPer 绑定成功率 成功绑定/分享次数 // Level 分享者等级 // RewardTotal 奖励合计 // DrawTotal 已领取奖励 type OneShareInfo struct { Date string Channel int Nick string UID int ShareCount int64 ClickCount int64 DownloadCount int64 OpenCount int64 BindCount int64 BindPer string Level int RewardTotal int64 DrawTotal int64 } // ControlCardDataReq 调控牌局 type ControlCardDataReq struct { Page int `json:"Page" binding:"required"` Num int `json:"Num" binding:"required"` Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` // 渠道 GameId *int `json:"GameId"` // 游戏id RoomId *int `json:"RoomId"` // 房间id ControlType *int `json:"ControlType"` // 幸运/怒气/小黑屋 Uid *string `json:"Uid"` // 用户id/牌局id } type ControlCardDataResp struct { List []PlayerBalance // 玩家信息 Total int64 // 条数 } type PlayerBalance struct { common.CurrencyBalance MillionBetArea map[string]int64 // 百人场下注区域 Result []string // 百人场结果 } // 充值走势 req type RechargeTrendReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // 充值走势 resp type RechargeTrendResp struct { List []RechargeTrendInfo } // 充值走势 info type RechargeTrendInfo struct { Date int64 RechargeOrderCount int64 // 总充值订单数 RechargeOrderSuccessCount int64 // 成功充值订单数 NewRechargeOrderCount int64 // 新用户充值总订单数 NewRechargeSuccessOrderCount int64 // 新用户充值成功订单数 CreateRechargeOrderPlayerCount int64 // 创建充值订单人数 RechargeSuccessPlayerCount int64 // 充值成功人数 NewRechargeSuccessPlayerCount int64 // 新用户充值成功人数 RechargeAmount int64 // 充值总金额 RechargeSuccessPer string // 充值成功率 NewRechargeSuccessPer string // 新用户充值成功率 PayOrderTrigger int64 // 所有用户点击充值次数 PayOrderSuccess int64 // 所有用户点击充值成功次数 NewPayOrderTrigger int64 // 新用户点击充值次数 NewPayOrderSuccess int64 // 新用户点击充值成功次数 } // 充值走势图 req type RechargeTrendMapReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Channel *int `json:"Channel"` } // 充值趋势图resp type RechargeTrendMapResp struct { List []RechargeTrendMapInfo } // 充值趋势图信息 type RechargeTrendMapInfo struct { Date int64 // 时间 RechargeOrderCount int64 // 充值订单总数 RechargeOrderSuccessCount int64 // 成功充值订单数 NewRechargeOrderCount int64 // 新用户充值订单数 RechargeSuccessPer string // 充值成功率 RechargeAmount int64 // 充值总金额 } // 添加用户tag请求 type UserTagReq struct { Uid int `json:"Uid" binding:"required"` // 用户id Tag string } type TagInfo struct { Id int Tag string } // 房间游戏分析req type RoomGameAnalysisReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` IsNew *bool // 不传就是所有玩家,true是新玩家, false是老玩家 } // 房间游戏分析resp type RoomGameAnalysisResp struct { List []RoomGameAnalysisInfo } // 房间游戏分析 type RoomGameAnalysisInfo struct { Date int64 // 时间 NewPlayerCount int64 // 新增总人数 OldPlayerCount int64 // 新增总人数 PlayerCount int64 // 玩游戏总人数 GameCount int64 // 游戏总局数 GameCountDetail map[string]int64 // 游戏局数详情 string表示游戏id int64表示游戏局数 AverageGameCount string // 平均游戏局数 PlayerGameDetail map[string]int64 // 用户玩牌详情 } // ReviewDataReq 请求数据总览 type ReviewAppSummaryReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` Sort int // 1.注册用户排序 2.活跃排序 3.充值排序 IsShow bool // 是否上架 } type ReviewAppSummaryResp struct { PlatformData []*ReviewData // 上架包数据 Total *ReviewData // 总数据 } // PlayGameRummyDataReq type PlayGameRummyDataReq struct { Start string `json:"Start" binding:"required"` End string `json:"End" binding:"required"` RoomId *int } // PlayGameRummyDataResp type PlayGameRummyDataResp struct { List []PlayGameRummyDataInfo Total PlayGameRummyDataInfo } type PlayGameRummyDataInfo struct { Date int64 // 日期 RoomId int // 房间id PlayerCount int64 // 人数 GameCount int64 // 游戏局数 HuPaiCount int64 // 胡牌局数 DropCount int64 // 弃牌局数 HuPaiPer string // 平局胡牌局数 DropPer string // 平均弃牌局数 PlayerNum int // 牌局人数 } // LostPlayerDataReq 流失玩家数据请求 type LostPlayerDataReq 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 `json:"Channel"` } type LostPlayerDataResp struct { List []LostPlayerData Count int64 } type LostPlayerData struct { Date int64 // 时间 Nick string // 昵称 Uid int // 用户id Birth int64 // 注册时间 LastLogin int64 // 最后登录时间 GameCount int64 // 游戏局数 Amount int64 // 当前金额 WithDrawAmount int64 // 退出金额 GameRecord []int64 // 最后三局游戏记录 输:50,赢:30,输:30 MostGameCount map[string]int64 // 最多游戏局数 } // 新用户充值统计 NewRechargeData type NewRechargeDataReq 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 `json:"Channel"` } type NewRechargeDataResp struct { List []NewRechargeData Count int64 } type NewRechargeData struct { Date int64 // 时间 Nick string // 昵称 Uid int // 用户id Birth int64 // 注册时间 RechargeDate int64 // 充值时间 RechargeAmount int64 // 未充值前的用户金额 WithdrawAmount int64 // 充值前的可退出金额 GameRecord []int64 // 充值前三局游戏记录 MostGameCount map[string]int64 // 最多游戏局数 GameCountBeforeRecharge int64 // 充值前游戏局数 } // 流失用户数据 type LostUserDataReq 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 Sort int // 1:所有 2:付费 3:活跃 4:新增 } type LostUserDataResp struct { List []LostUserData Count int64 } type LostUserData struct { Nick string // 用户昵称 Uid int // 用户uid Birth int64 // 生日 LastLogin int64 // 上一次登录 GameCount int64 // 游戏局数 Amount int64 // 用户余额 Cash int64 // 可退出金币 WithDrawAmount int64 // 退出金额 RechargeAmount int64 // 充值金额 } // 流失用户牌局详情 type LostUserDetailReq struct { Uid int } // 流失用户牌局详情 type LostUserDetailResp struct { List []LostUserDetail } type LostUserDetail struct { GameId int // 游戏id GameCount int64 // 游戏局数 WinPer string // 获胜率 BreakPer string // 破产率 } // 充值频率 type RechargeFrequencyReq 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 RechargeFrequencyResp struct { List []*RechargeFrequency Count int64 } type RechargeFrequency struct { Date int64 // 日期 Channel int List []RechargeFrequencyDetail } type RechargeFrequencyDetail struct { Date int64 // 时间 RegisterPlayerCount int64 // 注册玩家数量 RechargePlayerCount int64 // 充值玩家数量 NewPlayerRechargePer float64 // 新用当日户付费率 PayAmount24 int64 // 玩家24小时内付费金额 PayAmount24Per float64 // 玩家24小时付费率 PayAmountTotal int64 // 玩家总付费金额 PayAmountTotalPer float64 // 玩家总付费率 RechargeSuccessOrderCount int64 // 充值成功订单数 RechargeOrderCount int64 // 玩家充值总订单数 RechargeSuccessPer float64 // 支付成功率 } // 大R用户数据 type BigRUserDataReq 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"` Sort int // 1:按注册时间排序 2:按充值排序 3:按最后登录时间排序 Channel *int TotalRecharge int64 // 总充值 } type BigRUserDataResp struct { List []BigRUserData Count int64 } type BigRUserData struct { Nick string // 昵称 Uid int // 用户uid Birth int64 // 用户注册时间 LastLogin int64 // 最后登录时间 RechargeAmount int64 // 充值总额 RechargePer string // 充值成功率 WithDrawAmount int64 // 退出金额 RechargeAndWithDrawRate string // 充提比 Amount int64 // 用户余额 GameCount map[string]int64 // 游戏局数 Phone string // 手机号码 } // 查询退出订单 type WithdrawOrderReq struct { OrderId string // 订单id }