zhangqian
2024-04-17 e63c9d7f5f5c0819ee949697aec753895cc88ab5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package config
 
type Server struct {
    //JWT     JWT     `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
    Zap    Zap    `mapstructure:"zap" json:"zap" yaml:"zap"`
    System System `mapstructure:"system" json:"system" yaml:"system"`
    // gorm
    Mysql  Mysql           `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
    Mssql  Mssql           `mapstructure:"mssql" json:"mssql" yaml:"mssql"`
    Pgsql  Pgsql           `mapstructure:"pgsql" json:"pgsql" yaml:"pgsql"`
    Oracle Oracle          `mapstructure:"oracle" json:"oracle" yaml:"oracle"`
    Sqlite Sqlite          `mapstructure:"sqlite" json:"sqlite" yaml:"sqlite"`
    DBList []SpecializedDB `mapstructure:"db-list" json:"db-list" yaml:"db-list"`
 
    // 跨域配置
    Cors CORS `mapstructure:"cors" json:"cors" yaml:"cors"`
}