mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
21 lines
536 B
Go
21 lines
536 B
Go
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)
|
|
}
|