mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 14:04:16 +08:00
增加审计日志、图表数据自动清理功能
This commit is contained in:
@@ -49,3 +49,8 @@ func GetAuditSession(search string) *xorm.Session {
|
||||
}
|
||||
return session
|
||||
}
|
||||
|
||||
func ClearAccessAudit(ts string) (int64, error) {
|
||||
affected, err := xdb.Where("created_at < '" + ts + "'").Delete(&AccessAudit{})
|
||||
return affected, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user