mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 22:57:17 +08:00 
			
		
		
		
	重构:重构部门管理前端代码;新增修改部门、批量删除部门、查看部门详情功能(后端主要基于 CRUD 通用组件提供 API)
This commit is contained in:
		| @@ -53,7 +53,7 @@ public class CommonController { | ||||
|     @Log(ignore = true) | ||||
|     @Operation(summary = "查询部门树", description = "查询树结构的部门列表") | ||||
|     @GetMapping("/tree/dept") | ||||
|     public R<List<Tree<Long>>> deptTree(@Validated DeptQuery query) { | ||||
|     public R<List<Tree<Long>>> listDeptTree(@Validated DeptQuery query) { | ||||
|         List<DeptVO> list = deptService.list(query); | ||||
|         List<Tree<Long>> deptTreeList = deptService.buildTree(list); | ||||
|         return R.ok(deptTreeList); | ||||
|   | ||||
| @@ -31,6 +31,7 @@ import top.charles7c.cnadmin.common.base.BaseController; | ||||
| import top.charles7c.cnadmin.common.model.vo.R; | ||||
| import top.charles7c.cnadmin.system.model.query.DeptQuery; | ||||
| import top.charles7c.cnadmin.system.model.request.DeptRequest; | ||||
| import top.charles7c.cnadmin.system.model.vo.DeptDetailVO; | ||||
| import top.charles7c.cnadmin.system.model.vo.DeptVO; | ||||
| import top.charles7c.cnadmin.system.service.DeptService; | ||||
|  | ||||
| @@ -42,8 +43,8 @@ import top.charles7c.cnadmin.system.service.DeptService; | ||||
|  */ | ||||
| @Tag(name = "部门管理 API") | ||||
| @RestController | ||||
| @CrudRequestMapping(value = "/system/dept", api = {Api.LIST, Api.DETAIL, Api.CREATE, Api.UPDATE, Api.DELETE}) | ||||
| public class DeptController extends BaseController<DeptService, DeptVO, DeptVO, DeptQuery, DeptRequest> { | ||||
| @CrudRequestMapping(value = "/system/dept", api = {Api.LIST, Api.GET, Api.CREATE, Api.UPDATE, Api.DELETE}) | ||||
| public class DeptController extends BaseController<DeptService, DeptVO, DeptDetailVO, DeptQuery, DeptRequest> { | ||||
|  | ||||
|     @Override | ||||
|     @Operation(summary = "查询列表树") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user