| | |
| | | import com.doumee.biz.system.SystemMenuBiz; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.OperaType; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.system.dto.UpdateSystemMenuSortDTO; |
| | | import com.doumee.dao.system.model.SystemMenu; |
| | |
| | | return ApiResponse.success(systemMenuBiz.findTree(this.getLoginUser(null).getId())); |
| | | } |
| | | |
| | | @ApiOperation("查询顶部导航树") |
| | | @PostMapping("/topList") |
| | | @RequiresPermissions("system:menu:query") |
| | | public ApiResponse<List<SystemMenu>> findTopList () { |
| | | return ApiResponse.success(systemMenuBiz.findTopList()); |
| | | } |
| | | |
| | | @ApiOperation("查询列表树") |
| | | @PostMapping("/treeList") |
| | | @RequiresPermissions("system:menu:query") |
| | | public ApiResponse<List<SystemMenuListVO>> findTree () { |
| | | return ApiResponse.success(systemMenuBiz.findTree()); |
| | | return ApiResponse.success(systemMenuBiz.findTree(new SystemMenu())); |
| | | } |
| | | |
| | | @PreventRepeat |