优化 优先级: 命令行 > 环境变量 > 默认值 功能

This commit is contained in:
SliverHorn
2020-09-23 19:04:24 +08:00
parent f6a3c65129
commit 621069eee7
3 changed files with 21 additions and 16 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ type System struct {
Addr int `mapstructure:"addr" json:"addr" yaml:"addr"`
DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"`
NeedInitData bool `mapstructure:"need-init-data" json:"needInitData" yaml:"need-init-data"`
ErrorToEmail bool `mapstructure:"error-to-email" json:"errorToEmail" yaml:"error-to-email"`
ErrorToEmail bool `mapstructure:"error-to-email" json:"errorToEmail" yaml:"error-to-email"`
ConfigEnv string `mapstructure:"config-env" json:"configEnv" yaml:"config-env"`
}
type JWT struct {