|  |  |  | 
|---|
|  |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
|---|
|  |  |  | import com.doumee.core.constants.OperaType; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.LoginUserInfo; | 
|---|
|  |  |  | import com.doumee.dao.system.dto.UpdateSystemMenuSortDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.model.SystemMenu; | 
|---|
|  |  |  | import com.doumee.dao.system.vo.SystemMenuListVO; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("查询菜单树") | 
|---|
|  |  |  | @GetMapping("/treeNodes") | 
|---|
|  |  |  | public ApiResponse<List<SystemMenuNodeVO>> getTreeMenu () { | 
|---|
|  |  |  | return ApiResponse.success(systemMenuBiz.findTree(this.getLoginUser().getId())); | 
|---|
|  |  |  | public ApiResponse<List<SystemMenuNodeVO>> getTreeMenu (@RequestParam Integer type) { | 
|---|
|  |  |  | LoginUserInfo loginUserInfo = this.getLoginUser(); | 
|---|
|  |  |  | return ApiResponse.success(systemMenuBiz.findTree(loginUserInfo.getId(),type)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("查询列表树") | 
|---|
|  |  |  | @PostMapping("/treeList") | 
|---|
|  |  |  | @PostMapping("/treeList/{type}") | 
|---|
|  |  |  | @RequiresPermissions("system:menu:query") | 
|---|
|  |  |  | public ApiResponse<List<SystemMenuListVO>> findTree () { | 
|---|
|  |  |  | return ApiResponse.success(systemMenuBiz.findTree()); | 
|---|
|  |  |  | public ApiResponse<List<SystemMenuListVO>> findTree (@PathVariable Integer type) { | 
|---|
|  |  |  | return ApiResponse.success(systemMenuBiz.findTreeByType(type)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|