| | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.framework.excel.core.util.ExcelUtils; |
| | | import com.iailab.module.system.api.app.dto.AppMenuRespDTO; |
| | | import com.iailab.module.system.controller.admin.app.vo.AppPageReqVO; |
| | | import com.iailab.module.system.controller.admin.app.vo.AppRespVO; |
| | | import com.iailab.module.system.controller.admin.app.vo.AppSaveReqVO; |
| | | import com.iailab.module.system.controller.admin.auth.vo.AuthPermissionInfoRespVO; |
| | | import com.iailab.module.system.dal.dataobject.app.AppDO; |
| | | import com.iailab.module.system.service.app.AppService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得租户分页") |
| | | @Operation(summary = "获得分页") |
| | | @PreAuthorize("@ss.hasPermission('system:app:query')") |
| | | public CommonResult<PageResult<AppRespVO>> getTenantPage(@Valid AppPageReqVO pageVO) { |
| | | public CommonResult<PageResult<AppRespVO>> getAppPage(@Valid AppPageReqVO pageVO) { |
| | | PageResult<AppDO> pageResult = appService.getPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, AppRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/getAppList") |
| | | @Operation(summary = "获得应用列表") |
| | | @PreAuthorize("@ss.hasPermission('system:app-menu:query')") |
| | | public CommonResult<List<AppRespVO>> getAppList() { |
| | | List<AppDO> appDOS = appService.getList(); |
| | | return success(BeanUtils.toBean(appDOS, AppRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/getAppMenu") |
| | | @Operation(summary = "获得应用菜单列表") |
| | | @PreAuthorize("@ss.hasPermission('system:app-menu:query')") |
| | | @Parameter(name = "id", description = "ID", required = true, example = "1024") |
| | | public CommonResult<List<AppRespVO>> getAppMenu(@RequestParam("id") Long id) { |
| | | List<AuthPermissionInfoRespVO.MenuVO> appDOS = appService.getAppMenu(id); |
| | | return success(BeanUtils.toBean(appDOS, AppRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/export-excel") |
| | | @Operation(summary = "导出租户 Excel") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant:export')") |