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

134 rivejä
3.1 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. AlipayPid = "alipay_pid"
  82. AppPublicContent = "alipay_public_content"
  83. )
  84. func (gt AlipayConfig) String() string {
  85. switch gt {
  86. case AlipayAppId:
  87. return "支付宝商家应用appid"
  88. case AlipayPrivateKey:
  89. return "支付宝商家应用私钥"
  90. case AlipayPublicKey:
  91. return "支付宝商家应用公钥"
  92. case AlipayPublicContentRSA2:
  93. return "支付宝公钥证书"
  94. case AlipayRootContent:
  95. return "支付宝根证书"
  96. case AppPublicContent:
  97. return "应用公钥证书"
  98. case AlipayPid:
  99. return "签约的支付宝账号对应的支付宝唯一用户号"
  100. default:
  101. return "未知"
  102. }
  103. }
  104. // WxConfig 微信枚举类型
  105. type WxConfig string
  106. const (
  107. WxAppId = "wx_app_id"
  108. )
  109. func (gt WxConfig) String() string {
  110. switch gt {
  111. case WxAppId:
  112. return "微信应用appid"
  113. default:
  114. return "未知"
  115. }
  116. }