package model import "time" // AlertNotifySettings 告警消息模版(全局单行配置) // Logan.Li type AlertNotifySettings struct { ID uint `gorm:"primaryKey" json:"id"` TitleTemplate string `gorm:"type:varchar(256);comment:标题模版" json:"title_template"` FooterTemplate string `gorm:"type:varchar(256);comment:卡片底部模版" json:"footer_template"` PlatformName string `gorm:"type:varchar(64);default:AIOps 智能运维平台;comment:平台署名" json:"platform_name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } func (AlertNotifySettings) TableName() string { return "monitor_alert_notify_settings" }