Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
46c7bd0c
Commit
46c7bd0c
authored
Oct 22, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 获取用户对话列表,标题长度限制
parent
9db5450f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
AgentApplicationRestImpl.java
...cn/com/poc/expose/rest/impl/AgentApplicationRestImpl.java
+2
-1
No files found.
src/main/java/cn/com/poc/expose/rest/impl/AgentApplicationRestImpl.java
View file @
46c7bd0c
...
@@ -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
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment