open/model/notification.go

18 lines
316 B
Go
Raw Normal View History

2025-02-28 19:15:32 +08:00
package model
type NotificationType int
const (
NotificationError NotificationType = iota
NotificationWarning
NotificationInfo
NotificationSuccess
)
type Notification struct {
Model
Type NotificationType `json:"type"`
Title string `json:"title"`
Details string `json:"details"`
}