89 lines
2.3 KiB
Go
89 lines
2.3 KiB
Go
package player
|
||
|
||
import (
|
||
. "github.com/tomas-qstarrs/boost/dogfish"
|
||
)
|
||
|
||
type (
|
||
Player struct {
|
||
Root
|
||
UID Int64
|
||
Cli struct {
|
||
Ops String
|
||
IsSimulator Bool
|
||
Ip String
|
||
PlayerName String
|
||
LastBetId JSON
|
||
}
|
||
Char struct {
|
||
GroupBatch Int64 // 批次(AB测试的批次)
|
||
Group String // 组(AB测试的组)
|
||
Category String // 类别(配置的分支)
|
||
Branch Uint32 // 分支(代码的分支)
|
||
BranchName String // 分支名称(代码的分支名称)
|
||
CreateTime Time // 创建时间
|
||
LoginTime Time // 本次登录时间
|
||
LastLoginTime Time // 上次登录时间
|
||
ProcessTime Time // 上次进程时间
|
||
LastProcessTime Time // 一次进程时间
|
||
ActiveDays Int64 // 活跃天数
|
||
}
|
||
Book struct { // 账本 (实时数据)
|
||
Coin Int64
|
||
}
|
||
Agg struct { // 聚合 (累计数据)
|
||
///////////////////////// Total ////////////////////////
|
||
//总
|
||
BetSum Int64 // 累计下注金额
|
||
BetTimes Int64 // 累计下注次数
|
||
WinSum Int64 // 累计赢取金额
|
||
//日
|
||
BetSumDaily Int64 // 日下注金额
|
||
WinSumDaily Int64 // 日累计赢取金额
|
||
BetTimesDaily Int64 // 日下注次数
|
||
///////////////////////// Slots ////////////////////////
|
||
// Slots总统计
|
||
SlotsBetCoin Int64 // 下注统计
|
||
SlotsWinCoin Int64 // 赢取统计
|
||
SlotsSpinTimes Int64 // 总下注次数
|
||
|
||
// Slots每日统计
|
||
SlotsDailySpins Int64 // 每日Slots转动次数
|
||
SlotsDailyWin Int64 // 每日Slots累计赢取
|
||
SlotsDailyBet Int64 // 每日Slots累计下注
|
||
//Slots其他
|
||
SlotsContinuousZeroSpins Int64 // Slots连续转0次数
|
||
/////////////////////////////////////////////////////////
|
||
// Pool
|
||
PersonalPool Int64 // 个人奖池
|
||
TotalForceWin Int64 // 必出赢的钱
|
||
}
|
||
System struct {
|
||
Occupied struct {
|
||
CoinMap JSON
|
||
}
|
||
SpinUserTag struct { // spin usertag
|
||
GameSpinCount JSON
|
||
}
|
||
}
|
||
GM struct {
|
||
LockCoin Bool // (GM) 锁定金币
|
||
}
|
||
Slots struct {
|
||
FortuneTiger JSON
|
||
FortuneOx JSON
|
||
FortuneRabbit JSON
|
||
FortuneDragon JSON
|
||
FortuneMouse JSON
|
||
CashMania JSON
|
||
Test JSON
|
||
}
|
||
}
|
||
|
||
Bet struct {
|
||
ProcessID String // 用于退款Refund
|
||
GameID String // 用于清数据 Settle Bet
|
||
Coin Int64
|
||
}
|
||
)
|