feat: add message push function call

This commit is contained in:
engigu
2026-03-04 21:45:43 +08:00
parent d4663cb492
commit 81b8d2a93d
53 changed files with 4161 additions and 33 deletions
+20
View File
@@ -34,6 +34,7 @@ const (
SectionSystem = "system"
SectionScheduler = "scheduler"
SectionSecurity = "security"
SectionNotify = "notify"
// Site Settings Key 常量
KeyTitle = "title"
@@ -54,6 +55,25 @@ const (
KeyQueueSize = "queue_size"
KeyRateInterval = "rate_interval"
// Notify Settings Key 常量
KeyNotifyChannels = "channels"
KeyNotifyEvents = "events"
KeyNotifyToken = "notify_token"
// 事件绑定类型
BindingTypeSystem = "system"
BindingTypeTask = "task"
// 系统事件类型
EventUserLogin = "user_login"
EventBruteForceLogin = "brute_force_login"
EventPasswordChanged = "password_changed"
// 任务事件类型
EventTaskSuccess = "task_success"
EventTaskFailed = "task_failed"
EventTaskTimeout = "task_timeout"
// WebSocket 消息类型
WSTypeHeartbeat = "heartbeat"
WSTypeHeartbeatAck = "heartbeat_ack"