09-10-netty新增隐藏聊天接口

This commit is contained in:
2025-09-11 20:27:24 +08:00
parent c68d6cb53c
commit 8e9307bf00
2 changed files with 15 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class SysDeptController extends BaseController {
/**
* 根据项目id获取部门树以及岗位列表
*/
@SaCheckPermission("system:dept:listTree")
// @SaCheckPermission("system:dept:listTree")
@GetMapping("/list/tree")
public R<List<Tree<Long>>> listTreeByProjectId() {
List<Tree<Long>> tree = deptService.buildDeptTree();

View File

@ -124,6 +124,20 @@ public class ChatGroupController {
return R.ok(byId);
}
/**
* 隐藏聊天信息框
*/
@GetMapping("/hideRoom")
public R<Void> hideRoom(@RequestParam Long roomId) {
ChatGroup byId = chatGroupService.getById(roomId);
byId.setIsShowOut("1");
boolean b = chatGroupService.updateById(byId);
if (b){
return R.ok();
}
return R.fail();
}
/***
* 获取房间聊天记录 传递房间ID 获取发送给该房间的所有聊天记录
*/