notification.go 316 B

1234567891011121314151617
  1. package model
  2. type NotificationType int
  3. const (
  4. NotificationError NotificationType = iota
  5. NotificationWarning
  6. NotificationInfo
  7. NotificationSuccess
  8. )
  9. type Notification struct {
  10. Model
  11. Type NotificationType `json:"type"`
  12. Title string `json:"title"`
  13. Details string `json:"details"`
  14. }