面包店
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 1.5 KiB

8 maanden geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. BigDataScreenAccount = "big_data_screen_account"
  14. BigDataScreenPassword = "big_data_screen_password"
  15. ProductionWorkshopAccount = "production_workshop_account"
  16. ProductionWorkshopPassword = "production_workshop_password"
  17. )
  18. func (gt SysCfg) String() string {
  19. switch gt {
  20. case AppName:
  21. return "项目名称"
  22. case FileBucketHost:
  23. return "对象存储域名"
  24. case FileBucketRegion:
  25. return "文件所属区域"
  26. case FileExt:
  27. return "文件上传后缀,后台用户不限制后缀"
  28. case FileBucketScheme:
  29. return "文件上传模式"
  30. case FileSecretKey:
  31. return "对象存储SecretToken"
  32. case FileUserUploadMaxSize:
  33. return "用户单文件最大上传大小,byte"
  34. case FileAccessKey:
  35. return "对象存储AccessToken"
  36. case FileBucket:
  37. return "对象存储bucket"
  38. case BigDataScreenAccount:
  39. return "数据大屏-账号"
  40. case BigDataScreenPassword:
  41. return "数据大屏-密码"
  42. case ProductionWorkshopAccount:
  43. return "制作车间-账号"
  44. case ProductionWorkshopPassword:
  45. return "制作车间-密码"
  46. default:
  47. return "未知"
  48. }
  49. }