mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
feat: SendBusinessNotification supported configuration parameters
This commit is contained in:
parent
05528afbbb
commit
e94ce825d6
@ -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,
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user