constant.go 1.8 KB

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