config.go 1.1 KB

12345678910111213141516171819202122
  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. // oss
  15. Local Local `mapstructure:"local" json:"local" yaml:"local"`
  16. Qiniu Qiniu `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"`
  17. AliyunOSS AliyunOSS `mapstructure:"aliyun-oss" json:"aliyunOSS" yaml:"aliyun-oss"`
  18. TencentCOS TencentCOS `mapstructure:"tencent-cos" json:"tencentCOS" yaml:"tencent-cos"`
  19. Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
  20. Timer Timer `mapstructure:"timer" json:"timer" yaml:"timer"`
  21. }