|
@@ -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("功率预测系统")
|