26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package config
|
|
|
|
type Server struct {
|
|
//JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
|
|
Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
|
|
//Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
|
|
//Mongo Mongo `mapstructure:"mongo" json:"mongo" yaml:"mongo"`
|
|
//Email Email `mapstructure:"email" json:"email" yaml:"email"`
|
|
//System System `mapstructure:"system" json:"system" yaml:"system"`
|
|
//Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
|
|
//// auto
|
|
//AutoCode Autocode `mapstructure:"autocode" json:"autocode" yaml:"autocode"`
|
|
// gorm
|
|
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
|
|
|
|
//Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
|
|
//
|
|
//DiskList []DiskList `mapstructure:"disk-list" json:"disk-list" yaml:"disk-list"`
|
|
//
|
|
//// 跨域配置
|
|
//Cors CORS `mapstructure:"cors" json:"cors" yaml:"cors"`
|
|
RotateLogs RotateLogs `mapstructure:"rotateLogs" json:"rotateLogs" yaml:"rotateLogs"`
|
|
System System `mapstructure:"system" json:"system" yaml:"system"`
|
|
//Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
|
|
}
|