修复config的错误,调整记录日志中间件的获取用户id逻辑,优先从jwt里取,新增状态码不为200时发送邮件到指定邮箱功能
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user