Commit c09b444f by giaogiao

批量修改单向隐藏或显示会话

parent 87402a23
...@@ -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);
} }
// /** // /**
......
...@@ -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
......
...@@ -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"/>
......
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