constant.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package constant
  2. const (
  3. GameNodeType = "game"
  4. Token = "Token"
  5. RankKey = "rank"
  6. CountryRankKey = "countryRank"
  7. PlayerBaseKey = "playerBase"
  8. TotalUserKey = "totalUser"
  9. DrawHourKey = "DrawHour"
  10. DrawDailyKey = "drawDaily"
  11. DrawWeeklyKey = "drawWeekly"
  12. InviteKey = "Invite"
  13. InviteTagKey = "InviteTagKey"
  14. InviteScoreKey = "InviteScore"
  15. InviteRatioRecordKey = "InviteRatioRecord"
  16. InviteNodeHistoryKey = "InviteNodeHistory"
  17. WeekItemRecordKey = "WeekItemRecord"
  18. PlayerDailyKey = "PlayerDaily"
  19. PlayerStatHKey = "PlayerStat"
  20. PlayerLevelStatHKey = "PlayerLevelStat"
  21. ServerLoadHKey = "ServerLoad"
  22. PlayerIpRecordKey = "PlayerIpRecord"
  23. RocketLvKey = "RocketLv"
  24. PlayerTotalKey = "PlayerTotal"
  25. MoneyRatio = 10000000
  26. AdminAccess = "admin"
  27. NewPlayers = "newPlayers"
  28. TotalIncomeKey = "TotalIncome"
  29. )
  30. // 游戏表名
  31. const (
  32. CNameAccount = "account" // 账号
  33. CNamePlayer = "player" // 玩家
  34. CNamePlayerReward = "playerReward" // 玩家奖励
  35. CNamePlayerDailyRecord = "playerDailyRecord" // 玩家每日记录
  36. CNameCashOutRecord = "cashOutRecord" // 提现记录
  37. CNamePlayerLevelStat = "playerLevelStat" // 玩家等级统计
  38. CNameServerLoadStat = "serverLoadStat" // 服务器负载统计
  39. CNamePlayerCountryByIPStat = "playerCountryStat" // 玩家注册国家统计
  40. )
  41. // 榜单数据来源类型
  42. const (
  43. RankSourceInvite = 2 // 邀请
  44. RankSourceRoll = 3 // 抽奖次数
  45. RankSourceGold = 1 // 金币
  46. )
  47. // roll 结果类型
  48. const (
  49. RollSmallBet = 0 // <9
  50. RollBigBet = 1 // >=9
  51. RollDoubleBet = 2 // 对子
  52. RollTripleBet = 3 // 豹子2345
  53. RollSpecialTripleBet = 4 // 豹子16
  54. )