This commit is contained in:
苏尹岚
2020-12-08 16:43:16 +08:00
parent 7dd5223dea
commit aad5603c68
3 changed files with 44 additions and 0 deletions

View File

@@ -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"