nginx-ui/model/notification.go
2025-02-25 19:06:39 +08:00

18 lines
382 B
Go

package model
type NotificationType int
const (
NotificationError NotificationType = iota
NotificationWarning
NotificationInfo
NotificationSuccess
)
type Notification struct {
Model
Type NotificationType `json:"type"`
Title string `json:"title"`
Content string `json:"content"`
Details any `json:"details" gorm:"serializer:json"`
}