mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-14 22:23:42 +08:00
单聊群聊功能提交
This commit is contained in:
@@ -22,4 +22,6 @@ public class ChatMessageReadInfoReq {
|
||||
@ApiModelProperty("消息id集合(只查本人)")
|
||||
@Size(max = 20)
|
||||
private List<Long> msgIds;
|
||||
@ApiModelProperty("是否需要查未读数")
|
||||
private boolean needUnread;
|
||||
}
|
||||
|
||||
@@ -234,7 +234,7 @@ public class ChatServiceImpl implements ChatService {
|
||||
messages.forEach(message -> {
|
||||
AssertUtil.equal(uid, message.getFromUid(), "只能查询自己发送的消息");
|
||||
});
|
||||
return contactService.getMsgReadInfo(messages).values();
|
||||
return contactService.getMsgReadInfo(messages, request.isNeedUnread()).values();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user