constant.go 1.4 KB

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