constant.go 1.4 KB

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