liusheng
2024-04-30 01a79d5b431b71cc79cf5f6cc92cd4f3432781dd
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java
@@ -23,7 +23,7 @@
/**
 * 菜单信息
 *
 *
 * @author ruoyi
 */
@RestController
@@ -82,7 +82,7 @@
     */
    @PreAuthorize("@ss.hasPermi('system:menu:add')")
    @Log(title = "菜单管理", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@Validated @RequestBody SysMenu menu)
    {
        if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu)))
@@ -126,7 +126,7 @@
     */
    @PreAuthorize("@ss.hasPermi('system:menu:remove')")
    @Log(title = "菜单管理", businessType = BusinessType.DELETE)
    @DeleteMapping("/{menuId}")
    @GetMapping("/remove/{menuId}")
    public AjaxResult remove(@PathVariable("menuId") Long menuId)
    {
        if (menuService.hasChildByMenuId(menuId))
@@ -139,4 +139,4 @@
        }
        return toAjax(menuService.deleteMenuById(menuId));
    }
}
}