liujiandao
2023-11-22 3b474a056ea35196ce5d2a5f297eafa11295a95d
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"`
}