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
004d822b
Commit
004d822b
authored
Dec 03, 2021
by
hweeeeeei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化接口:获取会话中成员表列表
parent
68774ee0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
10 deletions
+51
-10
common/src/main/java/com/wecloud/im/controller/ImConversationMembersController.java
+1
-1
common/src/main/java/com/wecloud/im/ws/enums/WsResponseEventEnum.java
+36
-0
common/src/main/resources/mapper/ImClientMapper.xml
+12
-7
docs/md/内部/wecloud-im前端Websocket对接文档.md
+2
-2
No files found.
common/src/main/java/com/wecloud/im/controller/ImConversationMembersController.java
View file @
004d822b
...
@@ -59,7 +59,7 @@ public class ImConversationMembersController extends BaseController {
...
@@ -59,7 +59,7 @@ public class ImConversationMembersController extends BaseController {
*/
*/
@PostMapping
(
"/getList"
)
@PostMapping
(
"/getList"
)
// @OperationLog(name = "会话中成员表列表", type = OperationLogType.PAGE)
// @OperationLog(name = "会话中成员表列表", type = OperationLogType.PAGE)
@ApiOperation
(
value
=
"会话中成员表列表"
)
@ApiOperation
(
value
=
"
获取
会话中成员表列表"
)
public
ApiResult
<
List
<
ImConversationMemberListVo
>>
getImConversationMembersList
(
@Validated
@RequestBody
ImConversationMembersListParam
imConversationMembersListParam
)
throws
Exception
{
public
ApiResult
<
List
<
ImConversationMemberListVo
>>
getImConversationMembersList
(
@Validated
@RequestBody
ImConversationMembersListParam
imConversationMembersListParam
)
throws
Exception
{
// Paging<ImConversationMembersQueryVo> paging = imConversationMembersService.getImConversationMembersPageList(imConversationMembersPageParam);
// Paging<ImConversationMembersQueryVo> paging = imConversationMembersService.getImConversationMembersPageList(imConversationMembersPageParam);
// return ApiResult.ok(paging);
// return ApiResult.ok(paging);
...
...
common/src/main/java/com/wecloud/im/ws/enums/WsResponseEventEnum.java
0 → 100644
View file @
004d822b
package
com
.
wecloud
.
im
.
ws
.
enums
;
/**
* @Description ws响应类型
* @Author hewei hwei1233@163.com
* @Date 2019-12-05
*/
public
enum
WsResponseEventEnum
{
// - xx邀请xx加入会话 -1007
// - xx被xx移出会话 -1008
// - xx已接收某消息 -1009
// - xx已读某条消息 -1010
// - 你被xx拉入新会话 -1011
// - xx主动退出会话 -1012
// - xx成为新群主 -1013
/**
* 响应数据类型
*/
RES
(
1
);
private
final
int
cmdCode
;
WsResponseEventEnum
(
int
uriCode
)
{
this
.
cmdCode
=
uriCode
;
}
public
int
getCmdCode
()
{
return
cmdCode
;
}
}
common/src/main/resources/mapper/ImClientMapper.xml
View file @
004d822b
...
@@ -28,24 +28,29 @@
...
@@ -28,24 +28,29 @@
</select>
</select>
<select
id=
"getInfoList"
resultType=
"com.wecloud.im.vo.GetInfoListVo"
>
<select
id=
"getInfoList"
resultType=
"com.wecloud.im.vo.GetInfoListVo"
>
SELECT
SELECT
im_client.client_id AS clientId,
im_client.client_id AS clientId,
im_conversation_members.client_remark_name AS clientRemarkName,
im_client.head_portrait AS headPortrait,
im_client.head_portrait AS headPortrait,
im_client.nickname,
im_client.nickname,
im_conversation_members.attributes AS memberAttributes,
(SELECT im_conversation_members.client_remark_name FROM im_conversation_members AS im_conversation_members WHERE
im_conversation_members.fk_conversation_id = #{conversationId} AND im_conversation_members.fk_client_id =
clientId ) AS clientRemarkName ,
(SELECT im_conversation_members.attributes FROM im_conversation_members AS im_conversation_members WHERE
im_conversation_members.fk_conversation_id = #{conversationId} AND im_conversation_members.fk_client_id =
clientId ) AS memberAttributes ,
im_client.attributes AS clientAttributes
im_client.attributes AS clientAttributes
FROM
FROM
im_c
onversation_members AS im_conversation_members
im_c
lient AS im_client
INNER JOIN im_client AS im_client ON im_client.id = im_conversation_members.fk_client_id
WHERE
WHERE
im_conversation_members.fk_conversation_id = #{conversationId}
im_client.fk_appid = #{appId}
AND im_conversation_members.fk_appid = #{appId}
AND im_client.client_id IN
AND im_client.client_id IN
<foreach
collection=
"clientIds"
item=
"clientId"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"clientIds"
item=
"clientId"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{clientId}
#{clientId}
</foreach>
</foreach>
</select>
</select>
</mapper>
</mapper>
docs/md/内部/wecloud-im前端Websocket对接文档.md
View file @
004d822b
# wec
loud-im 前端Websocket对接文档
# wec
loud-im 前端Websocket对接文档
...
@@ -180,7 +180,7 @@ wss://ws.im199.com/ws?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJ3ZWI
...
@@ -180,7 +180,7 @@ wss://ws.im199.com/ws?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJ3ZWI
-
4:下发单人在线RTC事件通知
-
4:下发单人在线RTC事件通知
-
5:
响应请求(用于RTC音视频通话)
-
5:
会话中的事件
-
6:下发透传消息
-
6:下发透传消息
...
...
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