feat: 新增预警定时扫描器,移除附件归档字段并为角色表补充更新时间

This commit is contained in:
SunYF
2026-10-31 15:41:27 +08:00
parent 11dbdaae75
commit 0c03d32682
107 changed files with 10790 additions and 1844 deletions
+7 -1
View File
@@ -12,6 +12,10 @@ import (
// Tx is a transactional client that is created by calling Client.Tx().
type Tx struct {
config
// Alert is the client for interacting with the Alert builders.
Alert *AlertClient
// AlertRule is the client for interacting with the AlertRule builders.
AlertRule *AlertRuleClient
// Attachment is the client for interacting with the Attachment builders.
Attachment *AttachmentClient
// BackupRecord is the client for interacting with the BackupRecord builders.
@@ -187,6 +191,8 @@ func (tx *Tx) Client() *Client {
}
func (tx *Tx) init() {
tx.Alert = NewAlertClient(tx.config)
tx.AlertRule = NewAlertRuleClient(tx.config)
tx.Attachment = NewAttachmentClient(tx.config)
tx.BackupRecord = NewBackupRecordClient(tx.config)
tx.EventLog = NewEventLogClient(tx.config)
@@ -218,7 +224,7 @@ func (tx *Tx) init() {
// of them in order to commit or rollback the transaction.
//
// If a closed transaction is embedded in one of the generated entities, and the entity
// applies a query, for example: Attachment.QueryXXX(), the query will be executed
// applies a query, for example: Alert.QueryXXX(), the query will be executed
// through the driver which created this transaction.
//
// Note that txDriver is not goroutine safe.