蛋蛋星球-制度模式
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

123 lignes
2.5 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. )
  44. func (gt AliyunOss) String() string {
  45. switch gt {
  46. case AliyunOssEndpoint:
  47. return "oss地域节点"
  48. case AliyunOssBucketName:
  49. return "oss存储桶名称"
  50. case AliyunOssBucketScheme:
  51. return "oss上传方式"
  52. case AliyunOssAccessKeyID:
  53. return "oss访问秘钥id"
  54. case AliyunOssAccessKeySecret:
  55. return "oss访问秘钥"
  56. case AliyunOssDomain:
  57. return "oss域名"
  58. case AliyunOptions:
  59. return "文件上传类型"
  60. default:
  61. return "未知"
  62. }
  63. }
  64. // AlipayConfig 支付宝枚举类型
  65. type AlipayConfig string
  66. const (
  67. AlipayAppId = "alipay_app_id"
  68. AlipayPrivateKey = "alipay_private_key"
  69. AlipayPublicKey = "alipay_public_key"
  70. AlipayPublicContentRSA2 = "alipay_public_content_rsa2"
  71. AlipayRootContent = "alipay_root_content"
  72. AppPublicContent = "alipay_public_content"
  73. )
  74. func (gt AlipayConfig) String() string {
  75. switch gt {
  76. case AlipayAppId:
  77. return "支付宝商家应用appid"
  78. case AlipayPrivateKey:
  79. return "支付宝商家应用私钥"
  80. case AlipayPublicKey:
  81. return "支付宝商家应用公钥"
  82. case AlipayPublicContentRSA2:
  83. return "支付宝公钥证书"
  84. case AlipayRootContent:
  85. return "支付宝根证书"
  86. case AppPublicContent:
  87. return "应用公钥证书"
  88. default:
  89. return "未知"
  90. }
  91. }
  92. // WxConfig 微信枚举类型
  93. type WxConfig string
  94. const (
  95. WxAppId = "wx_app_id"
  96. )
  97. func (gt WxConfig) String() string {
  98. switch gt {
  99. case WxAppId:
  100. return "微信应用appid"
  101. default:
  102. return "未知"
  103. }
  104. }