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
c09b444f
Commit
c09b444f
authored
Aug 26, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改单向隐藏或显示会话
parent
87402a23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
common/src/main/java/com/wecloud/im/controller/ImConversationController.java
+7
-5
common/src/main/java/com/wecloud/im/service/ImConversationService.java
+1
-1
config/src/main/resources/config/logback.xml
+1
-1
No files found.
common/src/main/java/com/wecloud/im/controller/ImConversationController.java
View file @
c09b444f
...
@@ -54,13 +54,15 @@ public class ImConversationController extends BaseController {
...
@@ -54,13 +54,15 @@ public class ImConversationController extends BaseController {
}
}
/**
/**
* 修改单向隐藏或显示会话
*
批量
修改单向隐藏或显示会话
*/
*/
@PostMapping
(
"/displayUpdate"
)
@PostMapping
(
"/displayUpdate"
)
@ApiOperation
(
value
=
"修改单向隐藏或显示会话"
,
notes
=
"拉取会话列表不展示已隐藏状态的会话,云端聊天记录不删除;假设有A和B两个用户,A删会话,B还能发; 如果B发了消息,A这边要重新把会话显示出来,并能显示之前的聊天记录"
)
@ApiOperation
(
value
=
"批量修改单向隐藏或显示会话"
,
notes
=
"拉取会话列表不展示已隐藏状态的会话,云端聊天记录不删除;假设有A和B两个用户,A删会话,B还能发; 如果B发了消息,A这边要重新把会话显示出来,并能显示之前的聊天记录"
)
public
ApiResult
<
Boolean
>
updateDisplayConversation
(
@RequestBody
ImConversationDisplayUpdate
imConversationDisplayUpdate
)
throws
Exception
{
public
ApiResult
<
Boolean
>
updateDisplayConversation
(
@RequestBody
List
<
ImConversationDisplayUpdate
>
imConversationDisplayUpdates
)
throws
Exception
{
boolean
flag
=
imConversationService
.
updateDisplayConversation
(
imConversationDisplayUpdate
);
for
(
ImConversationDisplayUpdate
imConversationDisplayUpdate
:
imConversationDisplayUpdates
)
{
return
ApiResult
.
result
(
flag
);
boolean
flag
=
imConversationService
.
updateDisplayConversation
(
imConversationDisplayUpdate
);
}
return
ApiResult
.
result
(
true
);
}
}
// /**
// /**
...
...
common/src/main/java/com/wecloud/im/service/ImConversationService.java
View file @
c09b444f
...
@@ -49,7 +49,7 @@ public interface ImConversationService extends BaseService<ImConversation> {
...
@@ -49,7 +49,7 @@ public interface ImConversationService extends BaseService<ImConversation> {
boolean
updateImConversation
(
ImConversation
imConversation
)
throws
Exception
;
boolean
updateImConversation
(
ImConversation
imConversation
)
throws
Exception
;
/**
/**
* 是否单向隐藏会话","云端聊天记录不删除;假设有A和B两个用户,A删会话,B还能发; 如果B发了消息,A这边要重新把会话显示出来,并能显示之前的聊天记录"
*
修改为
是否单向隐藏会话","云端聊天记录不删除;假设有A和B两个用户,A删会话,B还能发; 如果B发了消息,A这边要重新把会话显示出来,并能显示之前的聊天记录"
*
*
* @return
* @return
* @throws Exception
* @throws Exception
...
...
config/src/main/resources/config/logback.xml
View file @
c09b444f
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<!-- 解决SpringBootAdmin错误日志问题 -->
<!-- 解决SpringBootAdmin错误日志问题 -->
<logger
name=
"org.apache.catalina.connector.CoyoteAdapter"
level=
"OFF"
/>
<logger
name=
"org.apache.catalina.connector.CoyoteAdapter"
level=
"OFF"
/>
<root
level=
"
DEBUG
"
>
<root
level=
"
INFO
"
>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"ASYNC_FILE"
/>
<appender-ref
ref=
"ASYNC_FILE"
/>
<appender-ref
ref=
"ASYNC_ERROR_FILE"
/>
<appender-ref
ref=
"ASYNC_ERROR_FILE"
/>
...
...
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