蛋蛋星球-制度模式
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

57 righe
1.1 KiB

  1. package enum
  2. // PriceSetting 价格设置枚举类
  3. const PriceSetting = "price_setting"
  4. // AliyunOss 阿里云对象存储枚举类
  5. type AliyunOss int32
  6. const (
  7. AliyunOssEndpoint = 1
  8. AliyunOssBucketName = 2
  9. AliyunOssBucketScheme = 3
  10. AliyunOssAccessKeyID = 4
  11. AliyunOssAccessKeySecret = 5
  12. AliyunOssDomain = 6
  13. )
  14. func (gt AliyunOss) String() string {
  15. switch gt {
  16. case AliyunOssEndpoint:
  17. return "oss_endpoint"
  18. case AliyunOssBucketName:
  19. return "oss_bucket_name"
  20. case AliyunOssBucketScheme:
  21. return "oss_bucket_scheme"
  22. case AliyunOssAccessKeyID:
  23. return "oss_access_key_id"
  24. case AliyunOssAccessKeySecret:
  25. return "oss_access_key_secret"
  26. case AliyunOssDomain:
  27. return "oss_domain"
  28. default:
  29. return "未知"
  30. }
  31. }
  32. // VideoReward 视频激励设置
  33. type VideoReward int32
  34. const (
  35. VideoRewardUnitPrice = 1
  36. VideoRewardECMP = 2
  37. )
  38. func (gt VideoReward) String() string {
  39. switch gt {
  40. case VideoRewardUnitPrice:
  41. return "video_reward_unit_price"
  42. case VideoRewardECMP:
  43. return "video_reward_ecmp"
  44. default:
  45. return "未知"
  46. }
  47. }