mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
18 lines
382 B
Go
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"`
|
|
}
|