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.

30 lines
1.4 KiB

3 years ago
  1. package config
  2. type Server struct {
  3. JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
  4. Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
  5. Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
  6. Email Email `mapstructure:"email" json:"email" yaml:"email"`
  7. Casbin Casbin `mapstructure:"casbin" json:"casbin" yaml:"casbin"`
  8. System System `mapstructure:"system" json:"system" yaml:"system"`
  9. Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
  10. // auto
  11. AutoCode Autocode `mapstructure:"autoCode" json:"autoCode" yaml:"autoCode"`
  12. // gorm
  13. Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
  14. Pgsql Pgsql `mapstructure:"pgsql" json:"pgsql" yaml:"pgsql"`
  15. DBList []DB `mapstructure:"db-list" json:"db-list" yaml:"db-list"`
  16. // oss
  17. Local Local `mapstructure:"local" json:"local" yaml:"local"`
  18. Qiniu Qiniu `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"`
  19. AliyunOSS AliyunOSS `mapstructure:"aliyun-oss" json:"aliyunOSS" yaml:"aliyun-oss"`
  20. HuaWeiObs HuaWeiObs `mapstructure:"hua-wei-obs" json:"huaWeiObs" yaml:"hua-wei-obs"`
  21. TencentCOS TencentCOS `mapstructure:"tencent-cos" json:"tencentCOS" yaml:"tencent-cos"`
  22. AwsS3 AwsS3 `mapstructure:"aws-s3" json:"awsS3" yaml:"aws-s3"`
  23. Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
  24. Timer Timer `mapstructure:"timer" json:"timer" yaml:"timer"`
  25. // 跨域配置
  26. Cors CORS `mapstructure:"cors" json:"cors" yaml:"cors"`
  27. }