refactor: notification module

This commit is contained in:
Jacky 2025-02-25 19:06:39 +08:00
parent 34fa4eb204
commit ab46d1de7e
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
41 changed files with 3989 additions and 2411 deletions

View file

@ -133,7 +133,7 @@ func AddCert(c *gin.Context) {
err = cert.SyncToRemoteServer(certModel)
if err != nil {
notification.Error("Sync Certificate Error", err.Error())
notification.Error("Sync Certificate Error", err.Error(), nil)
return
}
@ -188,7 +188,7 @@ func ModifyCert(c *gin.Context) {
err = cert.SyncToRemoteServer(certModel)
if err != nil {
notification.Error("Sync Certificate Error", err.Error())
notification.Error("Sync Certificate Error", err.Error(), nil)
return
}