refactor: 重构更新多个文件中的相关调用
This commit is contained in:
@@ -53,7 +53,7 @@ type YamlConfig struct {
|
||||
} `yaml:"listen"`
|
||||
} `yaml:"webServer"`
|
||||
|
||||
Database DbConfig `yaml:"database"`
|
||||
// Database DbConfig `yaml:"database"`
|
||||
|
||||
OMC struct {
|
||||
UriPrefix string `yaml:"uriPrefix"`
|
||||
@@ -139,16 +139,16 @@ type RestParam struct {
|
||||
KeyFile string `yaml:"keyFile"`
|
||||
}
|
||||
|
||||
type DbConfig struct {
|
||||
Type string `yaml:"type"`
|
||||
User string `yaml:"user"`
|
||||
Password string `yaml:"password"`
|
||||
Host string `yaml:"host"`
|
||||
Port string `yaml:"port"`
|
||||
Name string `yaml:"name"`
|
||||
ConnParam string `yaml:"connParam,omitempty"`
|
||||
Backup string `yaml:"backup"`
|
||||
}
|
||||
// type DbConfig struct {
|
||||
// Type string `yaml:"type"`
|
||||
// User string `yaml:"user"`
|
||||
// Password string `yaml:"password"`
|
||||
// Host string `yaml:"host"`
|
||||
// Port string `yaml:"port"`
|
||||
// Name string `yaml:"name"`
|
||||
// ConnParam string `yaml:"connParam,omitempty"`
|
||||
// Backup string `yaml:"backup"`
|
||||
// }
|
||||
|
||||
type AlarmConfig struct {
|
||||
SplitEventAlarm bool `yaml:"splitEventAlarm"`
|
||||
@@ -238,10 +238,10 @@ var YamlConfigInfo YamlConfigFile = YamlConfigFile{
|
||||
// set default value for yaml config
|
||||
func NewYamlConfig() YamlConfig {
|
||||
return YamlConfig{
|
||||
Database: DbConfig{
|
||||
Type: "mysql",
|
||||
ConnParam: "charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True",
|
||||
},
|
||||
// Database: DbConfig{
|
||||
// Type: "mysql",
|
||||
// ConnParam: "charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True",
|
||||
// },
|
||||
MML: MMLParam{
|
||||
SizeRow: 200,
|
||||
SizeCol: 120,
|
||||
|
||||
Reference in New Issue
Block a user