Commit 46c7bd0c authored by alex yao's avatar alex yao

feat: 获取用户对话列表,标题长度限制

parent 9db5450f
...@@ -152,7 +152,8 @@ public class AgentApplicationRestImpl implements AgentApplicationRest { ...@@ -152,7 +152,8 @@ public class AgentApplicationRestImpl implements AgentApplicationRest {
result = memberDialoguesQueryItems.stream().map(item -> { result = memberDialoguesQueryItems.stream().map(item -> {
UserDialoguesDto userDialoguesDto = new UserDialoguesDto(); UserDialoguesDto userDialoguesDto = new UserDialoguesDto();
userDialoguesDto.setDialogsId(item.getDialogsId()); userDialoguesDto.setDialogsId(item.getDialogsId());
userDialoguesDto.setContent(item.getContent()); String content = item.getContent().length() > 20 ? item.getContent().substring(0, 20) : item.getContent();
userDialoguesDto.setContent(content);
return userDialoguesDto; return userDialoguesDto;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment