Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
66458738
Commit
66458738
authored
Jan 13, 2022
by
lixiaozhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待接受的好友列表,对外不显示分页
parent
bbed644e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
core/src/main/java/com/wecloud/im/friend/controller/ImFriendController.java
+2
-2
core/src/main/java/com/wecloud/im/friend/service/ImFriendService.java
+2
-2
No files found.
core/src/main/java/com/wecloud/im/friend/controller/ImFriendController.java
View file @
66458738
...
...
@@ -90,12 +90,12 @@ public class ImFriendController extends BaseController {
*/
@PostMapping
(
"/unsureFriends"
)
@ApiOperation
(
value
=
"待接受的好友请求列表,最多只返回1000个"
)
public
ApiResult
<
Paging
<
ImFriendApplyDto
>>
getUnsureFriends
()
{
public
ApiResult
<
List
<
ImFriendApplyDto
>>
getUnsureFriends
()
{
ImClient
currentClient
=
imClientService
.
getCurentClient
();
if
(
currentClient
==
null
)
{
return
ApiResult
.
fail
(
ApiCode
.
CLIENT_NOT_FOUNT
,
null
);
}
Paging
<
ImFriendApplyDto
>
friendInfo
=
imFriendService
.
getUnsureFriends
(
currentClient
);
List
<
ImFriendApplyDto
>
friendInfo
=
imFriendService
.
getUnsureFriends
(
currentClient
);
return
ApiResult
.
ok
(
friendInfo
);
}
...
...
core/src/main/java/com/wecloud/im/friend/service/ImFriendService.java
View file @
66458738
...
...
@@ -68,12 +68,12 @@ public class ImFriendService extends BaseServiceImpl<ImFriendMapper, ImFriend> {
* @param currentClient
* @return
*/
public
Paging
<
ImFriendApplyDto
>
getUnsureFriends
(
ImClient
currentClient
)
{
public
List
<
ImFriendApplyDto
>
getUnsureFriends
(
ImClient
currentClient
)
{
ImFriendPageParam
pageParam
=
new
ImFriendPageParam
();
pageParam
.
setPageSize
(
1000L
);
Page
<
ImFriendApplyDto
>
page
=
new
PageInfo
(
pageParam
,
OrderItem
.
desc
(
getLambdaColumn
(
ImFriend:
:
getCreateTime
)));
IPage
<
ImFriendApplyDto
>
pageList
=
imFriendMapper
.
getUnsureFriendPageList
(
page
,
currentClient
.
getId
());
return
new
Paging
<>(
pageList
);
return
pageList
.
getRecords
(
);
}
/**
...
...
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