feat: Add web push hook functionality and configuration options

This commit is contained in:
Jeeklin committed 2024-02-27 12:04:28 +08:00
1 parent 483bfa14c1
commit 1b2b3a33ee
10 files changed
+142 -18

No files matched your search

+2
View File
@@ -17,6 +17,8 @@
"weChatPushUserId": "",
"tgChatId": "",
"tgBotToken": "",
"webPushUrl": "",
"webPushToken": "",
"isInit": true,
"httpsEnabled": 2
}
+2
View File
@@ -32,6 +32,8 @@ type Config struct {
TgBotToken string `json:"tgBotToken"`
TgChatId string `json:"tgChatId"`
IsInit bool `json:"isInit"`
WebPushUrl string `json:"webPushUrl"`
WebPushToken string `json:"webPushToken"`
Tables map[string]string `json:"-"`
TablesInitData map[string]string `json:"-"`
}
+2
View File
@@ -17,6 +17,8 @@
"weChatPushUserId": "",
"tgChatId": "",
"tgBotToken": "",
"webPushUrl": "",
"webPushToken": "",
"isInit": true,
"httpsEnabled": 1
}
+2
View File
@@ -17,6 +17,8 @@
"weChatPushUserId": "",
"tgChatId": "",
"tgBotToken": "",
"webPushUrl": "",
"webPushToken": "",
"isInit": true,
"httpsEnabled": 2
}