notification.go 536 B

123456789101112131415161718192021
  1. package notification
  2. import (
  3. "github.com/0xJacky/Nginx-UI/model"
  4. )
  5. func Info(title string, content string, details any) {
  6. push(model.NotificationInfo, title, content, details)
  7. }
  8. func Error(title string, content string, details any) {
  9. push(model.NotificationError, title, content, details)
  10. }
  11. func Warning(title string, content string, details any) {
  12. push(model.NotificationWarning, title, content, details)
  13. }
  14. func Success(title string, content string, details any) {
  15. push(model.NotificationSuccess, title, content, details)
  16. }