constant.go 994 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 = 20 // 处理中
  33. ShortDramaStatusWait = 30 // 待上架
  34. ShortDramaStatusOnline = 66 // 正常
  35. )
  36. // 剧集类型常量定义
  37. const (
  38. ShortDramaEpisodeTypeMain = 20 //正片
  39. ShortDramaEpisodeTypeTrailer = 1 //预告片
  40. )