mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
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:
1 parent
785b4dce37
commit
8bfe70d519
24 files changed
+572
-143
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user