IP名单API增加IP添加时间

This commit is contained in:
GoEdgeLab
2021-11-15 11:31:27 +08:00
parent 212cf5b112
commit cb70cae5ac
3 changed files with 27 additions and 0 deletions

View File

@@ -281,3 +281,11 @@ func (this *NodeLogDAO) UpdateNodeLogsRead(tx *dbs.Tx, nodeLogIds []int64) error
}
return nil
}
// UpdateAllNodeLogsRead 设置所有日志为已读
func (this *NodeLogDAO) UpdateAllNodeLogsRead(tx *dbs.Tx) error {
return this.Query(tx).
Attr("isRead", false).
Set("isRead", true).
UpdateQuickly()
}