nginx_ui/nginx-ui-dev/internal/notification/notification.go

22 lines
536 B
Go
Raw Normal View History

2025-03-04 19:28:12 +08:00
package notification
import (
"github.com/0xJacky/Nginx-UI/model"
)
func Info(title string, content string, details any) {
push(model.NotificationInfo, title, content, details)
}
func Error(title string, content string, details any) {
push(model.NotificationError, title, content, details)
}
func Warning(title string, content string, details any) {
push(model.NotificationWarning, title, content, details)
}
func Success(title string, content string, details any) {
push(model.NotificationSuccess, title, content, details)
}