From e94ce825d6611fe59346d7f55e81c794275a5fa4 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 9 Jan 2025 17:13:33 +0800 Subject: [PATCH] feat: SendBusinessNotification supported configuration parameters --- internal/api/msg.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index 2af524a73..b21e792db 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -255,7 +255,6 @@ func (m *MessageApi) SendBusinessNotification(c *gin.Context) { RecvGroupID string `json:"recvGroupID"` SendMsg bool `json:"sendMsg"` ReliabilityLevel *int `json:"reliabilityLevel"` - UnreadCount bool `json:"unreadCount"` }{} if err := c.BindJSON(&req); err != nil { apiresp.GinError(c, errs.ErrArgs.WithDetail(err.Error()).Wrap()) @@ -301,7 +300,7 @@ func (m *MessageApi) SendBusinessNotification(c *gin.Context) { Options: config.GetOptionsByNotification(config.NotificationConfig{ IsSendMsg: req.SendMsg, ReliabilityLevel: *req.ReliabilityLevel, - UnreadCount: req.UnreadCount, + UnreadCount: false, }), }, }