|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- package enum
-
- type SysCfg string
-
- const (
- AppInviteType = "app_invite_type"
- AppInviteLength = "app_invite_length"
- )
-
- func (gt SysCfg) String() string {
- switch gt {
- case AppInviteType:
- return "App邀请码设置(1数字;2数字+字母)"
- case AppInviteLength:
- return "App邀请码长度"
-
- default:
- return "未知"
- }
- }
-
- // VideoReward 视频激励设置
- type VideoReward string
-
- const (
- VideoRewardUnitPrice = "video_reward_unit_price"
- VideoRewardECPM = "video_reward_ecpm"
- )
-
- func (gt VideoReward) String() string {
- switch gt {
- case VideoRewardUnitPrice:
- return "激励视频单价"
- case VideoRewardECPM:
- return "激励视屏ecpm值"
-
- default:
- return "未知"
- }
- }
-
- // AliyunOss 阿里云对象存储枚举类
- type AliyunOss string
-
- const (
- AliyunOssEndpoint = "oss_endpoint"
- AliyunOssBucketName = "oss_bucket_name"
- AliyunOssBucketScheme = "oss_bucket_scheme"
- AliyunOssAccessKeyID = "oss_access_key_id"
- AliyunOssAccessKeySecret = "oss_access_key_secret"
- AliyunOssDomain = "oss_domain"
- AliyunOptions = "oss_options"
- )
-
- func (gt AliyunOss) String() string {
- switch gt {
- case AliyunOssEndpoint:
- return "oss地域节点"
- case AliyunOssBucketName:
- return "oss存储桶名称"
- case AliyunOssBucketScheme:
- return "oss上传方式"
- case AliyunOssAccessKeyID:
- return "oss访问秘钥id"
- case AliyunOssAccessKeySecret:
- return "oss访问秘钥"
- case AliyunOssDomain:
- return "oss域名"
- case AliyunOptions:
- return "文件上传类型"
-
- default:
- return "未知"
- }
- }
-
- // AlipayConfig 支付宝支付枚举类型
- type AlipayConfig string
-
- const (
- AlipayAppId = "alipay_app_id"
- AlipayPrivateKey = "alipay_private_key"
- AlipayPublicKey = "alipay_public_key"
- AlipayPublicContentRSA2 = "alipay_public_content_rsa2"
- AlipayRootContent = "alipay_root_content"
- AppPublicContent = "alipay_public_content"
- )
-
- func (gt AlipayConfig) String() string {
- switch gt {
- case AlipayAppId:
- return "支付宝商家应用appid"
- case AlipayPrivateKey:
- return "支付宝商家应用私钥"
- case AlipayPublicKey:
- return "支付宝商家应用公钥"
- case AlipayPublicContentRSA2:
- return "支付宝公钥证书"
- case AlipayRootContent:
- return "支付宝根证书"
- case AppPublicContent:
- return "应用公钥证书"
- default:
- return "未知"
- }
- }
|