From 72359f3c9e9fe855ecafafb769ed52fc2a7f7e61 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: 星期六, 10 八月 2024 09:46:02 +0800
Subject: [PATCH] 优化:视频通话会话列表和详情获取最后一条消息中增加用户名称和头像
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
index 7da0788..f1f289c 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
@@ -63,7 +63,7 @@
* 鑾峰彇鐢ㄦ埛鍒楄〃
*/
@ApiOperation("鑾峰彇鐢ㄦ埛鍒楄〃")
- @PreAuthorize("@ss.hasPermi('system:user:list')")
+// @PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/list")
public TableDataInfo list(SysUser user) {
startPage();
@@ -235,15 +235,31 @@
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/deptTree")
+ @ApiOperation("鑾峰彇閮ㄩ棬鏍戝垪琛�")
public AjaxResult deptTree(SysDept dept) {
return success(deptService.selectDeptTreeList(dept));
}
-
+ /**
+ * 鑾峰彇閮ㄩ棬鏍戝垪琛�
+ */
+ @GetMapping("/deptTreeNoDataScope")
+ @ApiOperation("鑾峰彇閮ㄩ棬鏍戝垪琛ㄦ棤鏁版嵁鏉冮檺")
+ public AjaxResult deptTree1(SysDept dept) {
+ return success(deptService.selectDeptTreeListNoDataScope(dept));
+ }
+ /**
+ * 鑾峰彇閮ㄩ棬鏍戝垪琛�
+ */
+ @ApiOperation("鑾峰彇閮ㄩ棬鏍戝垪琛╪oPerm")
+ @GetMapping("/deptTree/noPerm")
+ public AjaxResult deptTreeNoPerm(SysDept dept) {
+ return success(deptService.selectDeptTreeList(dept));
+ }
/**
* 淇敼瀵嗙爜
*/
@ApiOperation("淇敼瀵嗙爜")
- @PreAuthorize("@ss.hasPermi('system:user:changePwd')")
+// @PreAuthorize("@ss.hasPermi('system:user:changePwd')")
@PutMapping("/changePwd")
public Results changePwd(String newPassword) {
String userId = SecurityUtils.getUserId();
@@ -259,4 +275,5 @@
return Results.succeed("淇敼瀵嗙爜鎴愬姛锛�");
}
}
+
}
--
Gitblit v1.9.3