IP名单API增加IP添加时间

This commit is contained in:
刘祥超
2021-11-15 11:31:27 +08:00
parent 5b32343a2c
commit 1224758b5b
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()
}