he2802 4 år sedan
förälder
incheckning
3ffad3ce6f

+ 1 - 1
zhongzheng-admin/src/main/java/com/zhongzheng/controller/system/SysDeptController.java

@@ -156,7 +156,7 @@ public class SysDeptController extends BaseController
     @ApiOperation("删除部门")
     @PreAuthorize("@ss.hasPermi('system:dept:remove')")
     @Log(title = "部门管理", businessType = BusinessType.DELETE)
-    @PostMapping("/delete/{deptId}")
+    @PostMapping("/delete")
     public AjaxResult remove(@PathVariable Long deptId)
     {
         if (deptService.hasChildByDeptId(deptId))

+ 1 - 1
zhongzheng-admin/src/main/java/com/zhongzheng/controller/system/SysMenuController.java

@@ -152,7 +152,7 @@ public class SysMenuController extends BaseController
     @ApiOperation("删除菜单")
     @PreAuthorize("@ss.hasPermi('system:menu:remove')")
     @Log(title = "菜单管理", businessType = BusinessType.DELETE)
-    @PostMapping("/delete/{menuId}")
+    @PostMapping("/delete")
     public AjaxResult remove(@PathVariable("menuId") Long menuId)
     {
         if (menuService.hasChildByMenuId(menuId))

+ 1 - 1
zhongzheng-admin/src/main/java/com/zhongzheng/controller/system/SysRoleController.java

@@ -171,7 +171,7 @@ public class SysRoleController extends BaseController
     @ApiOperation("删除角色")
     @PreAuthorize("@ss.hasPermi('system:role:remove')")
     @Log(title = "角色管理", businessType = BusinessType.DELETE)
-    @PostMapping("/delete/{roleIds}")
+    @PostMapping("/delete")
     public AjaxResult remove(@PathVariable Long[] roleIds)
     {
         return toAjax(roleService.deleteRoleByIds(roleIds));

+ 1 - 1
zhongzheng-admin/src/main/java/com/zhongzheng/controller/user/SchoolTypeController.java

@@ -109,7 +109,7 @@ public class SchoolTypeController extends BaseController {
     @ApiOperation("删除高校类型")
     @PreAuthorize("@ss.hasPermi('system:type:remove')")
     @Log(title = "高校类型" , businessType = BusinessType.DELETE)
-    @PostMapping("/delete/{ids}")
+    @PostMapping("/delete")
     public AjaxResult<Void> remove(@PathVariable Long[] ids) {
         return toAjax(iSchoolTypeService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
     }