xusl 1 년 전
부모
커밋
5598e335fd

+ 36 - 1
ipfcst/ipfcst-common/ipfcst-common-security/src/main/java/com/jiayue/ipfcst/common/security/config/SwaggerConfig.java

@@ -29,6 +29,26 @@ public class SwaggerConfig {
     }
 
     @Bean
+    public Docket createDataExchangeApi() {
+        return new Docket(DocumentationType.SWAGGER_2)
+                .groupName("dataexchange")
+                .apiInfo(dataexchangeInfo())
+                .select()
+                .apis(RequestHandlerSelectors.basePackage("com.jiayue.ipfcst.dataexchange.controller"))
+                .paths(PathSelectors.any())
+                .build();
+    }
+    @Bean
+    public Docket createfileuploadApi() {
+        return new Docket(DocumentationType.SWAGGER_2)
+                .groupName("fileupload")
+                .apiInfo(fileuploadInfo())
+                .select()
+                .apis(RequestHandlerSelectors.basePackage("com.jiayue.ipfcst.fileupload.controller"))
+                .paths(PathSelectors.any())
+                .build();
+    }
+    @Bean
     public Docket createReportqueryApi() {
         return new Docket(DocumentationType.SWAGGER_2)
                 .groupName("reportquery")
@@ -47,7 +67,22 @@ public class SwaggerConfig {
                 .version("3.0")
                 .build();
     }
-
+    private ApiInfo dataexchangeInfo() {
+        return new ApiInfoBuilder()
+                .title("功率预测系统")
+                .description("dataexchange接口详细信息......")
+                //服务条款网址
+                .version("3.0")
+                .build();
+    }
+    private ApiInfo fileuploadInfo() {
+        return new ApiInfoBuilder()
+                .title("功率预测系统")
+                .description("fileupload接口详细信息......")
+                //服务条款网址
+                .version("3.0")
+                .build();
+    }
     private ApiInfo reportqueryInfo() {
         return new ApiInfoBuilder()
                 .title("功率预测系统")