constant.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. )
  18. // 游戏表名
  19. const (
  20. CNameAccount = "account"
  21. CNamePlayer = "player"
  22. CNamePlayerReward = "playerReward"
  23. CNamePlayerDailyRecord = "playerDailyRecord"
  24. CNameCashOutRecord = "cashOutRecord"
  25. CNamePlayerLevelStat = "playerLevelStat"
  26. CNameServerLoadStat = "serverLoadStat "
  27. CNamePlayerCountryByIPStat = "playerCountryStat"
  28. )
  29. // 榜单数据来源类型
  30. const (
  31. RankSourceScore = 1 // 积分
  32. RankSourceInvite = 2 // 邀请
  33. RankSourceRoll = 3 // 抽奖次数
  34. )
  35. // roll 结果类型
  36. const (
  37. RollSmallBet = 0 // <9
  38. RollBigBet = 1 // >=9
  39. RollDoubleBet = 2 // 对子
  40. RollTripleBet = 3 // 豹子2345
  41. RollSpecialTripleBet = 4 // 豹子16
  42. )