| | |
| | | |
| | | @ApiOperation("查询菜单树") |
| | | @GetMapping("/treeNodes") |
| | | public ApiResponse<List<SystemMenuNodeVO>> getTreeMenu () { |
| | | public ApiResponse<List<SystemMenuNodeVO>> getTreeMenu (@RequestParam Integer type) { |
| | | LoginUserInfo loginUserInfo = this.getLoginUser(); |
| | | return ApiResponse.success(systemMenuBiz.findTree(loginUserInfo.getId(),loginUserInfo.getType())); |
| | | return ApiResponse.success(systemMenuBiz.findTree(loginUserInfo.getId(),type)); |
| | | } |
| | | |
| | | @ApiOperation("查询列表树") |
| | | @PostMapping("/treeList/{type}") |
| | | @RequiresPermissions("system:menu:query") |
| | | <<<<<<< HEAD |
| | | public ApiResponse<List<SystemMenuListVO>> findTree ( @RequestBody SystemMenu systemMenu ) { |
| | | return ApiResponse.success(systemMenuBiz.findTree()); |
| | | ======= |
| | | public ApiResponse<List<SystemMenuListVO>> findTree (@PathVariable Integer type) { |
| | | return ApiResponse.success(systemMenuBiz.findTreeByType(type)); |
| | | >>>>>>> a7e6a3b52c64ba9add0ceb643d6915473a7770a4 |
| | | } |
| | | |
| | | @PreventRepeat |