Files
ai-ops/internal/domain/model/channel.go
2026-05-12 17:48:22 +08:00

22 lines
635 B
Go

package model
import "time"
// NotificationChannel 是通知渠道
type NotificationChannel struct {
ID string `json:"id"`
Name string `json:"name"`
ChannelType string `json:"channel_type"`
Config map[string]any `json:"config"`
Priority int `json:"priority"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
}
// ChannelConfig 是通道配置结构
type ChannelConfig struct {
WebhookURL string `json:"webhook_url,omitempty"`
EmailTo string `json:"email_to,omitempty"`
APIToken string `json:"api_token,omitempty"`
}