feat: opt message pages

This commit is contained in:
engigu
2026-03-09 22:30:05 +08:00
parent 564f39133f
commit 1584528bdf
6 changed files with 82 additions and 33 deletions
+3 -2
View File
@@ -203,15 +203,16 @@ func (s *NotificationService) SendToChannel(channel NotifyChannel, msg *NotifyMe
Title: msg.Title,
Text: msg.Text,
})
payload := map[string]interface{}{
"title": msg.Title,
"content": msg.Text,
"channel_id": channel.ID,
"channel_name": channel.Name,
"success": false,
"error_msg": "",
}
if err != nil {
payload["error_msg"] = err.Error()
eventbus.DefaultBus.Publish(eventbus.Event{