蛋蛋星球-制度模式
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

73 行
1.3 KiB

  1. package enum
  2. type SysCfg string
  3. const (
  4. AppInviteType = "app_invite_type"
  5. AppInviteLength = "app_invite_length"
  6. )
  7. func (gt SysCfg) String() string {
  8. switch gt {
  9. case AppInviteType:
  10. return "App邀请码设置(1数字;2数字+字母)"
  11. case AppInviteLength:
  12. return "App邀请码长度"
  13. default:
  14. return "未知"
  15. }
  16. }
  17. // VideoReward 视频激励设置
  18. type VideoReward string
  19. const (
  20. VideoRewardUnitPrice = "video_reward_unit_price"
  21. VideoRewardECPM = "video_reward_ecpm"
  22. )
  23. func (gt VideoReward) String() string {
  24. switch gt {
  25. case VideoRewardUnitPrice:
  26. return "激励视频单价"
  27. case VideoRewardECPM:
  28. return "激励视屏ecpm值"
  29. default:
  30. return "未知"
  31. }
  32. }
  33. // AliyunOss 阿里云对象存储枚举类
  34. type AliyunOss int32
  35. const (
  36. AliyunOssEndpoint = 1
  37. AliyunOssBucketName = 2
  38. AliyunOssBucketScheme = 3
  39. AliyunOssAccessKeyID = 4
  40. AliyunOssAccessKeySecret = 5
  41. AliyunOssDomain = 6
  42. )
  43. func (gt AliyunOss) String() string {
  44. switch gt {
  45. case AliyunOssEndpoint:
  46. return "oss_endpoint"
  47. case AliyunOssBucketName:
  48. return "oss_bucket_name"
  49. case AliyunOssBucketScheme:
  50. return "oss_bucket_scheme"
  51. case AliyunOssAccessKeyID:
  52. return "oss_access_key_id"
  53. case AliyunOssAccessKeySecret:
  54. return "oss_access_key_secret"
  55. case AliyunOssDomain:
  56. return "oss_domain"
  57. default:
  58. return "未知"
  59. }
  60. }