审计日志配置页显示审计去重间隔

This commit is contained in:
lanrenwo
2022-10-26 09:33:40 +08:00
parent 5f5ab3fbca
commit 86ee88a20c
3 changed files with 10 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import (
"net/http"
"regexp"
"github.com/bjdgyc/anylink/base"
"github.com/bjdgyc/anylink/dbdata"
)
@@ -82,6 +83,7 @@ func SetOtherAuditLog(w http.ResponseWriter, r *http.Request) {
RespError(w, RespInternalErr, err)
return
}
data.AuditInterval = base.Cfg.AuditInterval
RespSucess(w, data)
}

View File

@@ -21,8 +21,9 @@ type SettingSmtp struct {
}
type SettingAuditLog struct {
LifeDay int `json:"life_day"`
ClearTime string `json:"clear_time"`
AuditInterval int `json:"audit_interval"`
LifeDay int `json:"life_day"`
ClearTime string `json:"clear_time"`
}
type SettingOther struct {