修复config的错误,调整记录日志中间件的获取用户id逻辑,优先从jwt里取,新增状态码不为200时发送邮件到指定邮箱功能

This commit is contained in:
SliverHorn
2020-09-22 18:45:24 +08:00
parent f8e1832172
commit 099ff42404
4 changed files with 35 additions and 4 deletions
+1
View File
@@ -22,6 +22,7 @@ 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"`
}
type JWT struct {