mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-18 01:40:39 +08:00
增加系统配置
This commit is contained in:
@@ -43,6 +43,12 @@ public class DepartmentController {
|
||||
return JsonResponse.data(data);
|
||||
}
|
||||
|
||||
@GetMapping("/departments")
|
||||
public JsonResponse index(@RequestParam(name = "parent_id", defaultValue = "0") Integer parentId) {
|
||||
List<Department> departments = departmentService.listByParentId(parentId);
|
||||
return JsonResponse.data(departments);
|
||||
}
|
||||
|
||||
@BackendPermissionMiddleware(slug = BPermissionConstant.DEPARTMENT_CUD)
|
||||
@GetMapping("/create")
|
||||
public JsonResponse create() {
|
||||
|
||||
Reference in New Issue
Block a user