蛋蛋星球-制度模式
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.

131 lines
3.0 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 string
  35. const (
  36. AliyunOssEndpoint = "oss_endpoint"
  37. AliyunOssBucketName = "oss_bucket_name"
  38. AliyunOssBucketScheme = "oss_bucket_scheme"
  39. AliyunOssAccessKeyID = "oss_access_key_id"
  40. AliyunOssAccessKeySecret = "oss_access_key_secret"
  41. AliyunOssDomain = "oss_domain"
  42. AliyunOptions = "oss_options"
  43. AliyunOssAssumeRoleAccessKeyID = "oss_assume_role_access_key_id"
  44. AliyunOssAssumeRoleAccessKeySecret = "oss_assume_role_access_key_secret"
  45. AliyunOssAssumeRoleARN = "oss_assume_arn"
  46. )
  47. func (gt AliyunOss) String() string {
  48. switch gt {
  49. case AliyunOssEndpoint:
  50. return "oss地域节点"
  51. case AliyunOssBucketName:
  52. return "oss存储桶名称"
  53. case AliyunOssBucketScheme:
  54. return "oss上传方式"
  55. case AliyunOssAccessKeyID:
  56. return "oss访问秘钥id"
  57. case AliyunOssAccessKeySecret:
  58. return "oss访问秘钥"
  59. case AliyunOssDomain:
  60. return "oss域名"
  61. case AliyunOptions:
  62. return "文件上传类型"
  63. case AliyunOssAssumeRoleAccessKeyID:
  64. return "oss RAM角色访问秘钥id"
  65. case AliyunOssAssumeRoleAccessKeySecret:
  66. return "oss RAM角色访问秘钥"
  67. case AliyunOssAssumeRoleARN:
  68. return "oss RAM角色ARN"
  69. default:
  70. return "未知"
  71. }
  72. }
  73. // AlipayConfig 支付宝枚举类型
  74. type AlipayConfig string
  75. const (
  76. AlipayAppId = "alipay_app_id"
  77. AlipayPrivateKey = "alipay_private_key"
  78. AlipayPublicKey = "alipay_public_key"
  79. AlipayPublicContentRSA2 = "alipay_public_content_rsa2"
  80. AlipayRootContent = "alipay_root_content"
  81. AppPublicContent = "alipay_public_content"
  82. )
  83. func (gt AlipayConfig) String() string {
  84. switch gt {
  85. case AlipayAppId:
  86. return "支付宝商家应用appid"
  87. case AlipayPrivateKey:
  88. return "支付宝商家应用私钥"
  89. case AlipayPublicKey:
  90. return "支付宝商家应用公钥"
  91. case AlipayPublicContentRSA2:
  92. return "支付宝公钥证书"
  93. case AlipayRootContent:
  94. return "支付宝根证书"
  95. case AppPublicContent:
  96. return "应用公钥证书"
  97. default:
  98. return "未知"
  99. }
  100. }
  101. // WxConfig 微信枚举类型
  102. type WxConfig string
  103. const (
  104. WxAppId = "wx_app_id"
  105. )
  106. func (gt WxConfig) String() string {
  107. switch gt {
  108. case WxAppId:
  109. return "微信应用appid"
  110. default:
  111. return "未知"
  112. }
  113. }