自定义logger保留gorm的格式输出控制台, 修改SetUserInfo的校验规则为IdVerify

This commit is contained in:
SliverHorn
2020-12-07 12:11:50 +08:00
parent cab8de721f
commit 336d7473f7
6 changed files with 79 additions and 28 deletions

View File

@@ -9,5 +9,5 @@ type Mysql struct {
MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"`
LogZap bool `mapstructure:"log-zap" json:"logZap" yaml:"log-zap"`
LogZap string `mapstructure:"log-zap" json:"logZap" yaml:"log-zap"`
}