09-10-netty新增隐藏聊天接口
This commit is contained in:
@ -60,7 +60,7 @@ public class SysDeptController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 根据项目id获取部门树以及岗位列表
|
* 根据项目id获取部门树以及岗位列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:dept:listTree")
|
// @SaCheckPermission("system:dept:listTree")
|
||||||
@GetMapping("/list/tree")
|
@GetMapping("/list/tree")
|
||||||
public R<List<Tree<Long>>> listTreeByProjectId() {
|
public R<List<Tree<Long>>> listTreeByProjectId() {
|
||||||
List<Tree<Long>> tree = deptService.buildDeptTree();
|
List<Tree<Long>> tree = deptService.buildDeptTree();
|
||||||
|
|||||||
@ -124,6 +124,20 @@ public class ChatGroupController {
|
|||||||
return R.ok(byId);
|
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 获取发送给该房间的所有聊天记录
|
* 获取房间聊天记录 传递房间ID 获取发送给该房间的所有聊天记录
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user