| | |
| | | /** |
| | | * 获取部门列表 |
| | | */ |
| | | @RequiresPermissions("system:dept:list") |
| | | @GetMapping("/list") |
| | | @ApiOperation("获取部门列表") |
| | | public AjaxResult list(SysDept dept) |
| | |
| | | return success(depts); |
| | | } |
| | | |
| | | @RequiresPermissions("system:dept:list") |
| | | @GetMapping("/pagelist") |
| | | @ApiOperation("分页获取部门列表") |
| | | public AjaxResult pagelist(deptQuery dept) |
| | |
| | | /** |
| | | * 根据部门编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:dept:query") |
| | | @GetMapping(value = "/{deptId}") |
| | | @ApiOperation("根据部门编号获取详细信息") |
| | | public AjaxResult getInfo(@PathVariable Long deptId) |
| | |
| | | /** |
| | | * 新增部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:add") |
| | | @ApiOperation("新增部门") |
| | | @Log(title = "部门管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | |
| | | /** |
| | | * 修改部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:edit") |
| | | @Log(title = "部门管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改部门") |
| | | @PutMapping |
| | |
| | | /** |
| | | * 删除部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:remove") |
| | | @Log(title = "部门管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{deptId}") |
| | | @ApiOperation("删除部门管理") |