广告平台(站长使用)
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.

enum_sys_cfg.go 2.0 KiB

2 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package enum
  2. type SysCfg string
  3. const (
  4. AppName = "app_name"
  5. FileBucketHost = "file_bucket_host"
  6. FileBucketRegion = "file_bucket_region"
  7. FileBucketScheme = "file_bucket_scheme"
  8. FileExt = "file_ext"
  9. FileSecretKey = "file_secret_key"
  10. FileUserUploadMaxSize = "file_user_upload_max_size"
  11. FileAccessKey = "file_access_key"
  12. FileBucket = "file_bucket"
  13. WxOpenAppletServerDomain = "wx_open_applet_server_domain"
  14. WxOpenAuthorizationEventReceivingConfiguration = "wx_open_authorization_event_receiving_configuration"
  15. WxOpenDomainOfTheInitiatingPageForLoginAuthorization = "wx_open_domain_of_the_initiating_page_for_login_authorization"
  16. WxOpenMessageAndEventReceptionConfiguration = "wx_open_message_and_event_reception_configuration"
  17. WxOpenWhiteListIp = "wx_open_white_list_ip"
  18. )
  19. func (gt SysCfg) String() string {
  20. switch gt {
  21. case AppName:
  22. return "项目名称"
  23. case FileBucketHost:
  24. return "对象存储域名"
  25. case FileBucketRegion:
  26. return "对象存储域名"
  27. case FileBucketScheme:
  28. return "文件上传模式"
  29. case FileExt:
  30. return "文件上传后缀,后台用户不限制后缀"
  31. case FileSecretKey:
  32. return "对象存储SecretToken"
  33. case FileUserUploadMaxSize:
  34. return "用户单文件最大上传大小,byte"
  35. case FileAccessKey:
  36. return "对象存储AccessToken"
  37. case FileBucket:
  38. return "对象存储bucket"
  39. case WxOpenAppletServerDomain:
  40. return "微信开放平台-小程序服务器域名"
  41. case WxOpenAuthorizationEventReceivingConfiguration:
  42. return "微信开放平台-授权事件接收配置"
  43. case WxOpenDomainOfTheInitiatingPageForLoginAuthorization:
  44. return "微信开放平台-登录授权的发起页域名"
  45. case WxOpenMessageAndEventReceptionConfiguration:
  46. return "微信开放平台-消息与事件接收配置"
  47. case WxOpenWhiteListIp:
  48. return "微信开放平台-白名单ip"
  49. default:
  50. return "未知"
  51. }
  52. }