mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 16:13:59 +08:00
* feat: Support adding multiple alert methods * feat: Support adding multiple alert methods
22 lines
480 B
Go
22 lines
480 B
Go
package helper
|
|
|
|
type AlertAuditAlert struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
CreateUser string `gorm:"type:varchar(256)"`
|
|
UpdateUser string `gorm:"type:varchar(256)"`
|
|
}
|
|
|
|
func (AlertAuditAlert) TableName() string {
|
|
return "alerts"
|
|
}
|
|
|
|
type AlertAuditConfig struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
CreateUser string `gorm:"type:varchar(256)"`
|
|
UpdateUser string `gorm:"type:varchar(256)"`
|
|
}
|
|
|
|
func (AlertAuditConfig) TableName() string {
|
|
return "alert_configs"
|
|
}
|