mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
feat: rewrite notification system and telegram interactive bot
This commit is contained in:
1 parent
c606fd99f6
commit
3319d7344f
11 files changed
+387
-26
No files matched your search
@@ -57,6 +57,7 @@ func createNotification(c *gin.Context) (uint64, error) {
|
||||
n.RequestHeader = nf.RequestHeader
|
||||
n.RequestBody = nf.RequestBody
|
||||
n.URL = nf.URL
|
||||
n.Type = nf.Type
|
||||
verifyTLS := nf.VerifyTLS
|
||||
n.VerifyTLS = &verifyTLS
|
||||
formatMetricUnits := nf.FormatMetricUnits
|
||||
@@ -120,6 +121,7 @@ func updateNotification(c *gin.Context) (any, error) {
|
||||
n.RequestHeader = nf.RequestHeader
|
||||
n.RequestBody = nf.RequestBody
|
||||
n.URL = nf.URL
|
||||
n.Type = nf.Type
|
||||
verifyTLS := nf.VerifyTLS
|
||||
n.VerifyTLS = &verifyTLS
|
||||
formatMetricUnits := nf.FormatMetricUnits
|
||||
|
||||
Reference in new issue
Block a user