@RestController @RequestMapping(value="/sysDepartment") public class SysDepartmentController extends BaseController
部门 前端控制器
| Constructor and Description |
|---|
SysDepartmentController() |
| Modifier and Type | Method and Description |
|---|---|
ApiResult<Boolean> |
addSysDepartment(@Valid SysDepartment sysDepartment)
添加部门
|
ApiResult<Boolean> |
deleteSysDepartment(Long id)
删除部门
|
ApiResult<Paging<SysDepartment>> |
getAllDepartmentList()
获取所有部门列表
|
ApiResult<Paging<SysDepartmentTreeVo>> |
getAllDepartmentTree()
获取所有部门的树形列表
|
ApiResult<SysDepartmentQueryVo> |
getSysDepartment(Long id)
获取部门
|
ApiResult<Paging<SysDepartmentQueryVo>> |
getSysDepartmentPageList(@Valid SysDepartmentQueryParam sysDepartmentQueryParam)
部门分页列表
|
ApiResult<Boolean> |
updateSysDepartment(@Valid SysDepartment sysDepartment)
修改部门
|
getRequest, getResponsefail, fail, ok@PostMapping(value="/add") public ApiResult<Boolean> addSysDepartment(@Valid @RequestBody @Valid SysDepartment sysDepartment) throws Exception
Exception@PostMapping(value="/update") public ApiResult<Boolean> updateSysDepartment(@Valid @RequestBody @Valid SysDepartment sysDepartment) throws Exception
Exception@PostMapping(value="/delete/{id}")
public ApiResult<Boolean> deleteSysDepartment(@PathVariable(value="id")
Long id)
throws Exception
Exception@GetMapping(value="/info/{id}")
public ApiResult<SysDepartmentQueryVo> getSysDepartment(@PathVariable(value="id")
Long id)
throws Exception
Exception@PostMapping(value="/getPageList") public ApiResult<Paging<SysDepartmentQueryVo>> getSysDepartmentPageList(@Valid @RequestBody @Valid SysDepartmentQueryParam sysDepartmentQueryParam) throws Exception
Exception@PostMapping(value="/getAllDepartmentList") public ApiResult<Paging<SysDepartment>> getAllDepartmentList() throws Exception
Exception@PostMapping(value="/getAllDepartmentTree") public ApiResult<Paging<SysDepartmentTreeVo>> getAllDepartmentTree() throws Exception
ExceptionCopyright © 2019. All rights reserved.