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

This commit is contained in:
SliverHorn
2020-12-27 17:46:10 +08:00
committed by QM303176530
parent 74c1fd5b7d
commit f2b287f933
6 changed files with 79 additions and 28 deletions
+1 -1
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"`
}