constant.go 1.7 KB

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