From 1dcbedb4bfc60c16aaf8ad43bdfaddfbcaeef424 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Sat, 19 Nov 2022 22:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.3.2=E3=80=91=E3=80=90openapi?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0open-api=E6=A8=A1=E5=9D=97=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roses/kernel/openapi/api/constants/OpenApiConstants.java | 2 ++ .../kernel/springdoc/converter/GunsModelConverterImpl.java | 3 --- .../kernel/springdoc/providers/GunsJavadocProviderImpl.java | 1 + pom.xml | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel-d-openapi/openapi-api/src/main/java/cn/stylefeng/roses/kernel/openapi/api/constants/OpenApiConstants.java b/kernel-d-openapi/openapi-api/src/main/java/cn/stylefeng/roses/kernel/openapi/api/constants/OpenApiConstants.java index 2fb65dff0..6de596eef 100644 --- a/kernel-d-openapi/openapi-api/src/main/java/cn/stylefeng/roses/kernel/openapi/api/constants/OpenApiConstants.java +++ b/kernel-d-openapi/openapi-api/src/main/java/cn/stylefeng/roses/kernel/openapi/api/constants/OpenApiConstants.java @@ -31,8 +31,10 @@ package cn.stylefeng.roses.kernel.openapi.api.constants; * @date 2022-11-11 */ public interface OpenApiConstants { + /** * OpenApi模块的名称 */ String OPENAPI_MODULE_NAME = "kernel-d-openapi"; + } diff --git a/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/converter/GunsModelConverterImpl.java b/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/converter/GunsModelConverterImpl.java index a350dbeac..d0b07c135 100644 --- a/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/converter/GunsModelConverterImpl.java +++ b/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/converter/GunsModelConverterImpl.java @@ -29,9 +29,6 @@ import io.swagger.v3.core.converter.AnnotatedType; import io.swagger.v3.core.converter.ModelConverter; import io.swagger.v3.core.converter.ModelConverterContext; import io.swagger.v3.oas.models.media.Schema; -import org.springframework.core.Ordered; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Service; import java.lang.annotation.Annotation; import java.util.Iterator; diff --git a/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/providers/GunsJavadocProviderImpl.java b/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/providers/GunsJavadocProviderImpl.java index 54f4f0be1..98a51117a 100644 --- a/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/providers/GunsJavadocProviderImpl.java +++ b/kernel-d-openapi/openapi-sdk-springdoc/src/main/java/cn/stylefeng/roses/kernel/springdoc/providers/GunsJavadocProviderImpl.java @@ -104,4 +104,5 @@ public class GunsJavadocProviderImpl implements JavadocProvider { public String getFirstSentence(String text) { return text; } + } diff --git a/pom.xml b/pom.xml index 628158696..f9bb4db1e 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,9 @@ kernel-d-office + + kernel-d-openapi + kernel-d-pinyin @@ -114,7 +117,6 @@ kernel-s-migration - kernel-d-openapi