mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 18:00:32 +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"`
|
RecvGroupID string `json:"recvGroupID"`
|
||||||
SendMsg bool `json:"sendMsg"`
|
SendMsg bool `json:"sendMsg"`
|
||||||
ReliabilityLevel *int `json:"reliabilityLevel"`
|
ReliabilityLevel *int `json:"reliabilityLevel"`
|
||||||
UnreadCount bool `json:"unreadCount"`
|
|
||||||
}{}
|
}{}
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
apiresp.GinError(c, errs.ErrArgs.WithDetail(err.Error()).Wrap())
|
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{
|
Options: config.GetOptionsByNotification(config.NotificationConfig{
|
||||||
IsSendMsg: req.SendMsg,
|
IsSendMsg: req.SendMsg,
|
||||||
ReliabilityLevel: *req.ReliabilityLevel,
|
ReliabilityLevel: *req.ReliabilityLevel,
|
||||||
UnreadCount: req.UnreadCount,
|
UnreadCount: false,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user