| | |
| | | |
| | | private final DeptManageApplicationService deptManageApplicationService; |
| | | |
| | | @Operation(summary = "部门树(含禁用部门,最多五级)") |
| | | @Operation(summary = "部门树") |
| | | @GetMapping("/tree") |
| | | @SaCheckPermission( |
| | | value = { |
| | |
| | | return ResultUtil.data(deptManageApplicationService.create(request)); |
| | | } |
| | | |
| | | @Operation(summary = "编辑部门(body 须含 uuid)") |
| | | @Operation(summary = "编辑部门") |
| | | @PutMapping("/{id}") |
| | | @SaCheckPermission("sys:depts:update") |
| | | public Result<Void> update(@PathVariable Long id, @Valid @RequestBody DeptUpdateRequest request) { |
| | |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | @Operation(summary = "删除(逻辑删除,无下级时允许)") |
| | | @Operation(summary = "删除") |
| | | @DeleteMapping("/{id}") |
| | | @SaCheckPermission("sys:depts:delete") |
| | | public Result<Void> delete( |
| | |
| | | return ResultUtil.success(); |
| | | } |
| | | } |
| | | |