feat: 新增预警定时扫描器,移除附件归档字段并为角色表补充更新时间
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user