From fc74a02dd11988a36232498b0809a9b39afa229e Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期二, 29 十月 2024 17:22:13 +0800
Subject: [PATCH] 1、修改demo接口关键字 2、暂时移除shasteel-api服务

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/DemoController.java   |   10 +++++-----
 shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/vo/DemoPageReqVO.java |    2 +-
 shasteel-biz/pom.xml                                                                              |   10 +++++-----
 pom.xml                                                                                           |    2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/pom.xml b/pom.xml
index 3cbde6f..4e250c1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
         快速开发框架,默认基础system,data,model
     </description>
     <modules>
-        <module>shasteel-api</module>
+<!--        <module>shasteel-api</module>-->
         <module>shasteel-biz</module>
     </modules>
 
diff --git a/shasteel-biz/pom.xml b/shasteel-biz/pom.xml
index 73cd007..1bee456 100644
--- a/shasteel-biz/pom.xml
+++ b/shasteel-biz/pom.xml
@@ -19,11 +19,11 @@
     <dependencies>
 
         <!-- 依赖服务 -->
-        <dependency>
-            <groupId>com.iailab</groupId>
-            <artifactId>shasteel-api</artifactId>
-            <version>${revision}</version>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>com.iailab</groupId>-->
+<!--            <artifactId>shasteel-api</artifactId>-->
+<!--            <version>${revision}</version>-->
+<!--        </dependency>-->
         <dependency>
             <groupId>com.iailab</groupId>
             <artifactId>iailab-module-infra-api</artifactId>
diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/DemoController.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/DemoController.java
index 0a83bdf..734a99b 100644
--- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/DemoController.java
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/DemoController.java
@@ -62,7 +62,7 @@
     @Operation(summary = "获得演示")
     @Parameter(name = "id", description = "ID", required = true, example = "1024")
     @PreAuthorize("@ss.hasPermission('shasteel:demo:query')")
-    public CommonResult<DemoRespVO> getTenant(@RequestParam("id") Long id) {
+    public CommonResult<DemoRespVO> getDemo(@RequestParam("id") Long id) {
         DemoDO data = demoService.getInfo(id);
         return success(BeanUtils.toBean(data, DemoRespVO.class));
     }
@@ -70,16 +70,16 @@
     @GetMapping("/page")
     @Operation(summary = "获得分页")
     @PreAuthorize("@ss.hasPermission('shasteel:demo:query')")
-    public CommonResult<PageResult<DemoRespVO>> getTenantPage(@Valid DemoPageReqVO pageVO) {
+    public CommonResult<PageResult<DemoRespVO>> getDemoPage(@Valid DemoPageReqVO pageVO) {
         PageResult<DemoDO> pageResult = demoService.getPage(pageVO);
         return success(BeanUtils.toBean(pageResult, DemoRespVO.class));
     }
 
     @GetMapping("/export-excel")
-    @Operation(summary = "导出租户 Excel")
-    @PreAuthorize("@ss.hasPermission('system:tenant:export')")
+    @Operation(summary = "导出 Excel")
+    @PreAuthorize("@ss.hasPermission('system:demo:export')")
     @ApiAccessLog(operateType = EXPORT)
-    public void exportTenantExcel(@Valid DemoPageReqVO exportReqVO,
+    public void exportDemoExcel(@Valid DemoPageReqVO exportReqVO,
                                   HttpServletResponse response) throws IOException {
         exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
         List<DemoDO> list = demoService.getPage(exportReqVO).getList();
diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/vo/DemoPageReqVO.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/vo/DemoPageReqVO.java
index 38f6179..f0fd9e2 100644
--- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/vo/DemoPageReqVO.java
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/controller/admin/demo/vo/DemoPageReqVO.java
@@ -11,7 +11,7 @@
  * @Description
  * @createTime 2024年08月17日
  */
-@Schema(description = "管理后台 - 租户分页 Request VO")
+@Schema(description = "管理后台 - 演示分页 Request VO")
 @Data
 @EqualsAndHashCode(callSuper = true)
 @ToString(callSuper = true)

--
Gitblit v1.9.3