| | |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.dromara.common.core.constant.UserConstants; |
| | | import org.dromara.common.core.domain.R; |
| | |
| | | return R.ok(deptService.selectDeptTreeList(dept)); |
| | | } |
| | | |
| | | /** |
| | | * 获取部门下的所有用户信息 |
| | | */ |
| | | @SaCheckPermission("system:user:list") |
| | | @GetMapping("/list/dept/{deptId}") |
| | | public R<List<SysUserVo>> listByDept(@PathVariable @NotNull Long deptId) { |
| | | return R.ok(userService.selectUserListByDept(deptId)); |
| | | } |
| | | } |