aa
This commit is contained in:
@@ -214,6 +214,23 @@ func (c *EventController) GetImMessageRecord() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 用户未读消息设置
|
||||
// @Description 用户未读消息设置,用户在退出登录,ws关闭,以及关闭小程序或app时调用
|
||||
// @Param token header string true "认证token"
|
||||
// @Param payload query string true "messageGroupRead 格式[{"groupID":,"unReadCount":}]"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateUserMessageGroupRead [post]
|
||||
func (c *EventController) UpdateUserMessageGroupRead() {
|
||||
c.callUpdateUserMessageGroupRead(func(params *tEventUpdateUserMessageGroupReadParams) (retVal interface{}, errCode string, err error) {
|
||||
var reads []*model.MessageGroupRead
|
||||
if err = jxutils.Strings2Objs(params.Payload, &reads); err == nil {
|
||||
err = event.UpdateUserMessageGroupRead(params.Ctx, reads)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 发送聊天消息(限定系统消息)
|
||||
// @Description 发送聊天消息(限定系统消息)
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user