| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获取菜单列表", description = "用于【菜单管理】界面") |
| | | @PreAuthorize("@ss.hasPermission('system:menu:query')") |
| | | public CommonResult<List<MenuRespVO>> getMenuList(MenuListReqVO reqVO) { |
| | | List<MenuDO> list = menuService.getMenuList(reqVO); |
| | | list.sort(Comparator.comparing(MenuDO::getSort)); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取菜单信息") |
| | | @PreAuthorize("@ss.hasPermission('system:menu:query')") |
| | | public CommonResult<MenuRespVO> getMenu(Long id) { |
| | | MenuDO menu = menuService.getMenu(id); |
| | | return success(BeanUtils.toBean(menu, MenuRespVO.class)); |