From 558ffc4bcaf7aa5c683e7c9ce01e971feb9e4d95 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 14 十月 2024 14:11:48 +0800 Subject: [PATCH] 模型打包租户隔离 备份文件租户隔离 --- iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/controller/admin/app/AppController.java | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/controller/admin/app/AppController.java b/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/controller/admin/app/AppController.java index c0a75be..5438a35 100644 --- a/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/controller/admin/app/AppController.java +++ b/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/controller/admin/app/AppController.java @@ -6,6 +6,7 @@ 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; @@ -71,11 +72,28 @@ @GetMapping("/page") @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<AppMenuRespDTO> appDOS = appService.getAppMenu(id); +// return success(BeanUtils.toBean(appDOS, AppRespVO.class)); +// } + @GetMapping("/export-excel") @Operation(summary = "导出租户 Excel") @PreAuthorize("@ss.hasPermission('system:tenant:export')") -- Gitblit v1.9.3