蛋蛋星球-制度模式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1008 B

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