From f55ed1d2a1bdf4ad80930e879631d6d95d4b6c3c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 28 八月 2025 18:57:38 +0800 Subject: [PATCH] RCS 库位同步接口调用 RCS任务下发接口功能调用 RCS 取消任务接口功能开发 RCS异常功回调功能开发 --- rsf-server/src/main/java/com/vincent/rsf/server/common/config/SwaggerConfig.java | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/common/config/SwaggerConfig.java b/rsf-server/src/main/java/com/vincent/rsf/server/common/config/SwaggerConfig.java index 65dedf4..8e336a6 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/common/config/SwaggerConfig.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/common/config/SwaggerConfig.java @@ -18,7 +18,6 @@ import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.spring.web.plugins.WebFluxRequestHandlerProvider; import springfox.documentation.spring.web.plugins.WebMvcRequestHandlerProvider; - import java.lang.reflect.Field; import java.util.List; import java.util.stream.Collectors; @@ -36,8 +35,8 @@ public Docket docket() { Docket docket = new Docket(DocumentationType.OAS_30) .apiInfo(apiInfo()) + .enable("dev".equals(active)) .groupName("娴嬭瘯鍒嗙粍") - .enable(true) .select() //apis锛� 娣诲姞swagger鎺ュ彛鎻愬彇鑼冨洿 .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) @@ -47,6 +46,20 @@ return docket; } + @Bean + public Docket erpDocket() { + Docket docket = new Docket(DocumentationType.OAS_30) + .apiInfo(apiInfo()) + .enable("dev".equals(active)) + .groupName("ERP鎺ュ彛瀵规帴") + .select() + .apis(RequestHandlerSelectors.basePackage("com.vincent.rsf.server.api.controller.erp")) + .paths(PathSelectors.any()) + .build(); + + return docket; + } + private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("WMS鏍囩増1.0鐗堟湰鎺ュ彛鏂囨。") -- Gitblit v1.9.1