feat: swagger switch.
This commit is contained in:
+8
-3
@@ -41,9 +41,14 @@ type MQTTConfig struct {
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
DB DBConfig `mapstructure:"database" yaml:"database"`
|
||||
AI AIConfig `mapstructure:"ai" yaml:"ai"`
|
||||
MQTT MQTTConfig `mapstructure:"mqtt" yaml:"mqtt"`
|
||||
DB DBConfig `mapstructure:"database" yaml:"database"`
|
||||
AI AIConfig `mapstructure:"ai" yaml:"ai"`
|
||||
MQTT MQTTConfig `mapstructure:"mqtt" yaml:"mqtt"`
|
||||
Swagger SwaggerConfig `mapstructure:"swagger" yaml:"swagger"`
|
||||
}
|
||||
|
||||
type SwaggerConfig struct {
|
||||
Enabled bool `mapstructure:"enabled" yaml:"enabled"`
|
||||
}
|
||||
|
||||
func InitConfig() {
|
||||
|
||||
Reference in New Issue
Block a user