add jiyi
This commit is contained in:
@@ -43,6 +43,7 @@ type Config struct {
|
||||
Tianyuanapi TianyuanapiConfig `mapstructure:"tianyuanapi"`
|
||||
Shujubao ShujubaoConfig `mapstructure:"shujubao"`
|
||||
Nuoer NuoerConfig `mapstructure:"nuoer"`
|
||||
Jiyi JiyiConfig `mapstructure:"jiyi"`
|
||||
Huibo HuiboConfig `mapstructure:"huibo"`
|
||||
PDFGen PDFGenConfig `mapstructure:"pdfgen"`
|
||||
}
|
||||
@@ -738,6 +739,33 @@ type NuoerLevelFileConfig struct {
|
||||
Compress bool `mapstructure:"compress"`
|
||||
}
|
||||
|
||||
// JiyiConfig 集奕配置
|
||||
type JiyiConfig struct {
|
||||
URL string `mapstructure:"url"`
|
||||
AppID string `mapstructure:"app_id"`
|
||||
AppSecret string `mapstructure:"app_secret"`
|
||||
Timeout time.Duration `mapstructure:"timeout"`
|
||||
|
||||
Logging JiyiLoggingConfig `mapstructure:"logging"`
|
||||
}
|
||||
|
||||
// JiyiLoggingConfig 集奕日志配置
|
||||
type JiyiLoggingConfig struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
LogDir string `mapstructure:"log_dir"`
|
||||
UseDaily bool `mapstructure:"use_daily"`
|
||||
EnableLevelSeparation bool `mapstructure:"enable_level_separation"`
|
||||
LevelConfigs map[string]JiyiLevelFileConfig `mapstructure:"level_configs"`
|
||||
}
|
||||
|
||||
// JiyiLevelFileConfig 集奕日志级别配置
|
||||
type JiyiLevelFileConfig struct {
|
||||
MaxSize int `mapstructure:"max_size"`
|
||||
MaxBackups int `mapstructure:"max_backups"`
|
||||
MaxAge int `mapstructure:"max_age"`
|
||||
Compress bool `mapstructure:"compress"`
|
||||
}
|
||||
|
||||
// HuiboConfig 汇博配置
|
||||
type HuiboConfig struct {
|
||||
URL string `mapstructure:"url"`
|
||||
|
||||
Reference in New Issue
Block a user