constant.go 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package constant
  2. const (
  3. ClearLocalCacheSignalEtcdKey = "clear_local_cache"
  4. ClearRedisCacheSignalEtcdKey = "clear_redis_cache"
  5. )
  6. // 字典表中datatype的定义值
  7. const (
  8. DICT_DATATYPE_GAMERANK = "game_rank"
  9. )
  10. const RedisPrefixGame = "GameMap"
  11. type Provider string
  12. const (
  13. ProviderUnknown Provider = "unknown"
  14. ProviderNormal Provider = "normal"
  15. ProviderGoogle Provider = "google"
  16. ProviderApple Provider = "apple"
  17. ProviderMeta Provider = "meta"
  18. ProviderGithub Provider = "github"
  19. )
  20. const (
  21. UpgradeApp = 1
  22. UpgradeRes = 2
  23. UpgradeIgnore = 0
  24. )
  25. const (
  26. // 10000
  27. ProviderCheckCode = 10000 //检测三方账号登录中状态
  28. )
  29. // 短剧状态常量定义
  30. const (
  31. ShortDramaStatusOffline = 1 // 下架
  32. ShortDramaStatusUpcoming = 2 // 即将上线
  33. ShortDramaStatusOnline = 3 // 正常
  34. )
  35. // 剧集类型常量定义
  36. const (
  37. ShortDramaEpisodeTypeMain = 20 //正片
  38. ShortDramaEpisodeTypeTrailer = 1 //预告片
  39. )