|
@@ -48,10 +48,11 @@ public class ChatLogController {
|
|
|
@Parameter(name = "type", description = "聊天类型:0小区群聊,1私聊"),
|
|
|
@Parameter(name = "chatPartnerId", description = "聊天对象id")
|
|
|
})
|
|
|
- public Result<PageData<ChatLogDTO>> page(@Parameter(hidden = true) @RequestParam Map<String, Object> params){
|
|
|
+ public Result<PageData<ChatLogDTO>> page(@Parameter(hidden = true) @RequestParam Map<String, Object> params, @Parameter(hidden = true) @RequestAttribute("userId") Long userId){
|
|
|
if(params.get("type")==null || params.get("chatPartnerId")==null){
|
|
|
return new Result<PageData<ChatLogDTO>>().error(ErrorCode.NOT_NULL,"聊天类型和对象不能为空");
|
|
|
}
|
|
|
+ params.put("editUser",userId);
|
|
|
PageData<ChatLogDTO> page = chatLogService.page(params);
|
|
|
|
|
|
return new Result<PageData<ChatLogDTO>>().ok(page);
|