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.
339 lines
8.5 KiB
339 lines
8.5 KiB
package common |
|
|
|
const ( |
|
ESIndexBalance = "bal" // 流水记录,改为别名 |
|
ESIndexJackpot = "jackpot" // 游戏奖池中奖记录 |
|
ESIndexLongPay = "long_pay" // 充值返回速度过慢记录 |
|
ESIndexTron = "tron" // tron转账记录 |
|
ESIndexGameData = "game_data" // 玩家游戏记录 |
|
ESIndexShareProfitReport = "share_profit_report" // 分享者每日收益汇总 |
|
ESIndexShareProfitRecord = "share_profit_record" // 分享者所有推荐人贡献的每日收益详情 |
|
) |
|
|
|
// backend |
|
const ( |
|
ESIndexBackMailDraft = "back_mail_draft" // 后台邮件草稿 |
|
ESIndexBackWhiteList = "back_white_list" // 后台白名单 |
|
ESIndexBackPlayerOnline = "back_player_online" // 后台在线统计 |
|
ESIndexBackExamineList = "back_examine_list" // 后台审核人员名单 |
|
ESIndexBackWarn = "back_warn" // 后台预警 |
|
ESIndexBackDailyData = "back_daily_data" // 后台每日统计数据 |
|
ESIndexBackOpenRecord = "back_open_record" // 后台统计玩家打开安装数 |
|
ESIndexBackIncomeStatistics = "back_income_statistics" // 后台收入统计 |
|
ESIndexBackPlayerPayData = "back_player_pay_data" // 后台玩家充值/退出统计 |
|
ESIndexBackReviewData = "back_review_data" // 数据概要 |
|
ESIndexBackAppSummary = "back_app_summary" // 应用概要 |
|
ESIndexBackRechargeFrequency = "back_recharge_frequency" // 付费分析 |
|
ESIndexBackKeepData = "back_keep_data" // 留存 |
|
ESIndexBackBlackList = "back_black_list" // 封号拉黑的玩家 |
|
ESIndexBackABLog = "back_ab_log" // 玩家进入ab面统计 |
|
ESIndexBackMillionGameRecord = "back_million_game_record" |
|
ESIndexBackMillionPlayerRecord = "back_million_player_record" |
|
ESIndexBackPddRecord = "back_pdd_record" |
|
ESIndexBackFeedback = "back_feedback" |
|
ESIndexBackActivity = "back_activity" |
|
ESIndexBackBetDraw = "back_betdraw" // 下注抽奖 |
|
) |
|
|
|
// GroupBuckets group聚合查询对象 |
|
type GroupBuckets struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
} |
|
} |
|
|
|
// GroupCardBuckets group聚合查询对象 |
|
type GroupCardBuckets struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Sub struct { |
|
Value int |
|
} |
|
} |
|
} |
|
|
|
// Group2CardBuckets group聚合查询对象 |
|
type Group2CardBuckets struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Sub1 struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Sub2 struct { |
|
Value int |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
// GroupSumBuckets group聚合查询对象 |
|
type GroupSumBuckets struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Value struct { |
|
Value float64 |
|
} |
|
} |
|
} |
|
|
|
// Group2SumBuckets group聚合查询对象 |
|
type Group2SumBuckets struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Sub1 struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Sub2 struct { |
|
Value float64 |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
// SumByResult sum聚合查询对象 |
|
type SumByResult struct { |
|
Value float64 |
|
} |
|
|
|
// ESPlayerStats 玩家充值/退出记录表 |
|
type ESPlayerPayData struct { |
|
ID string `json:"-"` |
|
UID int `json:"UID"` |
|
Channel int `json:"Channel"` |
|
Time int64 `json:"Time"` |
|
IsNew bool `json:"IsNew"` |
|
Type int `json:"Type"` // 类型 1充值 2退出 |
|
CurrencyType CurrencyType `json:"CurrencyType"` |
|
Amount int64 `json:"Amount"` // 充值/退出金额 |
|
FirstAmount int64 `json:"FirstAmount"` // 是否是首次,如果是,则金额大于0 |
|
} |
|
|
|
type ESNewOnline struct { |
|
Channel int `json:"Channel"` |
|
Time int64 `json:"Time"` |
|
Total int `json:"Total"` |
|
GameID int `json:"GameID"` |
|
Recharge int `json:"Recharge"` |
|
New int `json:"New"` |
|
Old int `json:"Old"` |
|
} |
|
|
|
// ESNewOnlineBucket 在线聚合对象 |
|
type ESNewOnlineBucket struct { |
|
Buckets []struct { |
|
Key interface{} |
|
Doc_count int |
|
Total struct { |
|
Value float64 |
|
} |
|
Recharge struct { |
|
Value float64 |
|
} |
|
New struct { |
|
Value float64 |
|
} |
|
Old struct { |
|
Value float64 |
|
} |
|
} |
|
} |
|
|
|
// ESDailySysData 每日系统统计的一些数据 |
|
// USDT USDT总量 |
|
// BRL BRL总量 |
|
// Time 统计日零点时间戳 |
|
// Date 日期 |
|
type ESDailySysData struct { |
|
Date string |
|
Channel int |
|
Time int64 |
|
USDT int64 |
|
BRL int64 |
|
} |
|
|
|
// ESOpenRecord 统计安装打开app的数目 |
|
type ESOpenRecord struct { |
|
Time int64 |
|
UUID string |
|
Channel int |
|
} |
|
|
|
// ESGameJackpot 游戏场jackpot大奖记录 |
|
type ESGameJackpot struct { |
|
UID int // 用户uid |
|
Nick string // 用户昵称 |
|
Time int64 // 时间 |
|
Avatar string // 用户头像 |
|
Channel int // 渠道 |
|
Bet int64 // 投注总额 |
|
Get int64 // 获得的奖励 |
|
Total int64 // 总奖励 |
|
GameID int |
|
RoomID int |
|
Winners int // 瓜分奖池的总玩家 |
|
Multi int // 倍率 |
|
} |
|
|
|
// ESBlackList 游戏拉黑玩家 |
|
type ESBlackList struct { |
|
UID int // 用户uid |
|
Name string |
|
Phone string |
|
Email string |
|
PayAccount string |
|
Time int64 |
|
} |
|
|
|
// ESLongPay 充值返回记录 |
|
type ESLongPay struct { |
|
Channel int |
|
Time int64 |
|
Date string |
|
Cost int64 // 时间消耗单位毫秒 |
|
UID int |
|
Amount int64 |
|
} |
|
|
|
// ESTron 转账记录 |
|
type ESTron struct { |
|
TxID string // 交易号 |
|
From string |
|
To string |
|
OrderID string // 系统订单号 |
|
Amount int64 |
|
Time int64 |
|
Type int // 1trx 2usdt |
|
Success bool |
|
Status int // 1玩家退出打u 2系统自动从玩家地址转u回主地址 3后台转账操作 |
|
} |
|
|
|
// ESABLog 进入ab面统计 |
|
type ESABLog struct { |
|
Channel int |
|
Time int64 |
|
DeviceID string |
|
IsA bool // 是否进入A面 |
|
Log string // 日志记录 |
|
} |
|
|
|
// ESGameData 玩家游戏记录 |
|
type ESGameData struct { |
|
UID int // 用户uid |
|
Channel int |
|
Provider int // 提供商 |
|
GameID int // 游戏id |
|
UUID string // 厂商唯一id |
|
Type CurrencyType |
|
BetAmount int64 // 下注金额 |
|
SettleAmount int64 // 输赢金额 |
|
MyUUID string // 自己的唯一id |
|
Time int64 |
|
Birth int64 |
|
PlayTime int64 |
|
SubID int |
|
IsNew bool |
|
} |
|
|
|
// ESIncomeStatistics 收入统计 |
|
// Investment 投入资金 |
|
// Period 回本周期 |
|
type ESIncomeStatistics struct { |
|
Time int64 // 时间 |
|
Channel int // 渠道 |
|
Investment int64 // 投入资金 |
|
Period int64 // 回本周期 |
|
} |
|
|
|
// ESMillionGameRecord 百人模式游戏数据统计 |
|
type ESMillionGameRecord struct { |
|
Time int64 |
|
GameID int // 游戏id |
|
RoomID int // 场次id |
|
UUID string |
|
PlayerCount int // 本局总人数 |
|
PlayerBet int64 // 用户下注金额 |
|
Reward int64 // 发放金额 |
|
Profit int64 // 盈亏 |
|
Result string // 开奖结果 |
|
ResultDetail string // 开奖结果 具体的牌/骰子 |
|
Channel int |
|
Area int // 区域 |
|
IsWin bool // 该区域是否获胜 |
|
} |
|
|
|
// ESMillionPlayerRecord 百人模式游戏数据统计 |
|
type ESMillionPlayerRecord struct { |
|
UID int |
|
Time int64 |
|
GameID int // 游戏id |
|
RoomID int // 场次id |
|
UUID string |
|
Settle int64 // 本局结算结果 |
|
Result string // 开奖结果 |
|
Channel int |
|
Bets []int64 |
|
} |
|
|
|
// ESShareProfitReport 分享者每日分享收益记录 |
|
type ESShareProfitReport struct { |
|
UID int // 分享者 |
|
Regist int64 // 注册人数 |
|
Bet int64 // 有效下注 |
|
Level int // 分享者等级 |
|
Reward int64 |
|
Date string |
|
Time int64 |
|
} |
|
|
|
// ESShareProfitRecord 分享推荐收益记录 |
|
type ESShareProfitRecord struct { |
|
UID int // 被分享人 |
|
Bet int64 // 被分享人投注 |
|
DownBet int64 // 被分享人的下级投注总和 |
|
Up int // 分享者uid |
|
Reward int64 // 佣金 |
|
Date string |
|
Time int64 |
|
} |
|
|
|
// UID int 被分享人 |
|
// Referer int 分享人 |
|
type ESPddRecord struct { |
|
UID int // 被分享人 |
|
Referer int // 分享人 |
|
Time int64 |
|
Nick string |
|
Avatar string |
|
} |
|
|
|
type ESFeedback struct { |
|
UID int |
|
QuestionIndex int |
|
Choose int |
|
Context string |
|
Time int64 |
|
} |
|
|
|
type ESActivity struct { |
|
ActivityID int |
|
UID int |
|
Time int64 |
|
Type int // 1点击 2参与 |
|
Amount int64 // 赠送金额 |
|
} |
|
|
|
type ESActivityBetDraw struct { |
|
UID int |
|
Time int64 |
|
Reward int64 |
|
Type int // 转盘类型 |
|
}
|
|
|