add cron, nat api & refactor alert rule (#459)

* add cron api & refactor alert rule

* add nat api

* fix swagger

* remove unnecessary steps
This commit is contained in:
UUBulb
2024-10-26 23:57:47 +08:00
committed by GitHub
parent ebc4fad9bc
commit 68d7e16773
24 changed files with 573 additions and 144 deletions

View File

@@ -57,7 +57,7 @@ func createNotification(c *gin.Context) (uint64, error) {
n.URL = nf.URL
verifySSL := nf.VerifySSL
n.VerifySSL = &verifySSL
n.ID = nf.ID
ns := model.NotificationServerBundle{
Notification: &n,
Server: nil,
@@ -115,7 +115,7 @@ func updateNotification(c *gin.Context) (any, error) {
n.URL = nf.URL
verifySSL := nf.VerifySSL
n.VerifySSL = &verifySSL
n.ID = nf.ID
ns := model.NotificationServerBundle{
Notification: &n,
Server: nil,