From ca53f41fe31fe499acfe44e880c40f94cb493953 Mon Sep 17 00:00:00 2001 From: duanledexianxianxian Date: Tue, 19 May 2020 18:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fengyuchenglun}/apidoc/core/ApiDoc.java | 16 +-- .../fengyuchenglun}/apidoc/core/Context.java | 13 +- .../apidoc/core/common/Assert.java | 2 +- .../apidoc/core/common/Constants.java | 2 +- .../apidoc/core/common/ObjectMappers.java | 2 +- .../core/common/QueryStringBuilder.java | 2 +- .../apidoc/core/common/URI.java | 4 +- .../description/ArrayTypeDescription.java | 6 +- .../description/ObjectTypeDescription.java | 6 +- .../description/PrimitiveTypeDescription.java | 2 +- .../description/StringTypeDescription.java | 2 +- .../common/description/TypeDescription.java | 8 +- .../UnAvailableTypeDescription.java | 4 +- .../apidoc/core/common/diff/FileMatcher.java | 2 +- .../apidoc/core/common/diff/FileSystem.java | 2 +- .../apidoc/core/common/diff/MatchPatcher.java | 2 +- .../core/common/helper/AnnotationHelper.java | 2 +- .../common/helper/ClassDeclarationHelper.java | 2 +- .../core/common/helper/CommentHelper.java | 2 +- .../common/helper/CompilationUnitHelper.java | 2 +- .../apidoc/core/common/helper/EnumHelper.java | 4 +- .../core/common/helper/ExpressionHelper.java | 2 +- .../core/common/helper/FieldHelper.java | 5 +- .../apidoc/core/common/helper/FileHelper.java | 2 +- .../common/helper/JsonPropertyHelper.java | 2 +- .../core/common/helper/OptionalHelper.java | 2 +- .../core/common/helper/ReferenceContext.java | 2 +- .../core/common/helper/StringHelper.java | 2 +- .../core/common/helper/TypeNameHelper.java | 2 +- .../common/helper/TypeParameterHelper.java | 2 +- .../core/common/helper/ValidationHelper.java | 2 +- .../core/common/markup/MarkupBuilder.java | 4 +- .../core/common/markup/asciidoc/AsciiDoc.java | 2 +- .../markup/asciidoc/AsciiDocBuilder.java | 6 +- .../core/common/markup/asciidoc/Color.java | 2 +- .../core/common/markup/markdown/Markdown.java | 2 +- .../markup/markdown/MarkdownBuilder.java | 6 +- .../apidoc/core/common/postman/Body.java | 2 +- .../apidoc/core/common/postman/BodyMode.java | 2 +- .../apidoc/core/common/postman/Folder.java | 2 +- .../apidoc/core/common/postman/Info.java | 2 +- .../apidoc/core/common/postman/Item.java | 2 +- .../apidoc/core/common/postman/Parameter.java | 4 +- .../apidoc/core/common/postman/Postman.java | 2 +- .../apidoc/core/common/postman/Request.java | 6 +- .../apidoc/core/common/postman/Response.java | 4 +- .../apidoc/core/common/postman/Url.java | 2 +- .../apidoc/core/parser/ParserStrategy.java | 6 +- .../apidoc/core/parser/VisitorParser.java | 8 +- .../apidoc/core/render/AsciiDocRender.java | 14 +-- .../apidoc/core/render/MarkdownRender.java | 13 +- .../apidoc/core/render/PostmanRender.java | 12 +- .../apidoc/core/render/ProjectRender.java | 4 +- .../core/resolver/ArrayTypeResolver.java | 8 +- .../core/resolver/CollectionTypeResolver.java | 12 +- .../core/resolver/DateTypeResolver.java | 6 +- .../core/resolver/EnumTypeResolver.java | 6 +- .../apidoc/core/resolver/MapTypeResolver.java | 6 +- .../core/resolver/ObjectTypeResolver.java | 10 +- .../core/resolver/PrimitiveTypeResolver.java | 6 +- .../core/resolver/StringTypeResolver.java | 6 +- .../resolver/SystemObjectTypeResolver.java | 6 +- .../core/resolver/TypeNameResolver.java | 4 +- .../apidoc/core/resolver/TypeResolver.java | 4 +- .../apidoc/core/resolver/TypeResolvers.java | 8 +- .../apidoc/core/schema/Appendix.java | 7 +- .../apidoc/core/schema/Book.java | 2 +- .../apidoc/core/schema/Cell.java | 2 +- .../apidoc/core/schema/Chapter.java | 2 +- .../apidoc/core/schema/Header.java | 2 +- .../apidoc/core/schema/Method.java | 2 +- .../apidoc/core/schema/Node.java | 8 +- .../apidoc/core/schema/Project.java | 2 +- .../core/schema/RequestParameterType.java | 52 ++++++++ .../apidoc/core/schema/Row.java | 2 +- .../apidoc/core/schema/Section.java | 8 +- .../apidoc/core/schema/Tag.java | 2 +- .../core/schema/RequestParameterType.java | 23 ---- .../src/main/resources/templates/markdown.ftl | 2 - .../apidoc/springmvc/ParameterHelper.java | 2 +- .../springmvc/RequestMappingHelper.java | 12 +- .../apidoc/springmvc/SpringMVCContext.java | 4 +- .../apidoc/springmvc/SpringParser.java | 37 +++--- .../resovler/SpringComponentTypeResolver.java | 16 +-- ...chenglun.apidoc.core.parser.ParserStrategy | 1 + .../com.kim.apidoc.core.parser.ParserStrategy | 1 - .../apidoc/springmvc/SpringTest.java | 10 +- .../fengyuchenglun}/example/ApigccTest.java | 64 +++++----- .../example/annotation/KimController.java | 2 +- .../example/annotation/KimResponseBody.java | 2 +- .../fengyuchenglun}/example/common/Code.java | 36 +++--- .../fengyuchenglun}/example/common/Menu.java | 32 ++--- .../fengyuchenglun}/example/common/Page.java | 52 ++++---- .../fengyuchenglun}/example/common/Query.java | 40 +++--- .../example/common/ResultData.java | 114 +++++++++--------- .../fengyuchenglun}/example/common/Role.java | 72 +++++------ .../example/common/StaticFinalCode.java | 34 +++--- .../fengyuchenglun}/example/common/User.java | 96 +++++++-------- .../example/common/UserDTO.java | 98 +++++++-------- .../example/common/UserDetails.java | 16 +-- .../example/common/UserQuery.java | 32 ++--- .../example/common/Wrapper.java | 28 ++--- .../spring/advanced/UserController.java | 95 +++++++++++++++ .../spring/advanced/UserController.java | 48 -------- build.gradle | 8 +- 105 files changed, 719 insertions(+), 648 deletions(-) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/ApiDoc.java (91%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/Context.java (87%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/Assert.java (91%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/Constants.java (89%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/ObjectMappers.java (95%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/QueryStringBuilder.java (94%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/URI.java (91%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/description/ArrayTypeDescription.java (93%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/description/ObjectTypeDescription.java (95%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/description/PrimitiveTypeDescription.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/description/StringTypeDescription.java (87%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/description/TypeDescription.java (94%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/description/UnAvailableTypeDescription.java (78%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/diff/FileMatcher.java (98%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/diff/FileSystem.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/diff/MatchPatcher.java (99%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/AnnotationHelper.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/ClassDeclarationHelper.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/CommentHelper.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/CompilationUnitHelper.java (89%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/EnumHelper.java (93%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/ExpressionHelper.java (98%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/FieldHelper.java (95%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/FileHelper.java (95%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/JsonPropertyHelper.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/OptionalHelper.java (84%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/ReferenceContext.java (92%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/StringHelper.java (94%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/TypeNameHelper.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/TypeParameterHelper.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/helper/ValidationHelper.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/markup/MarkupBuilder.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/markup/asciidoc/AsciiDoc.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/markup/asciidoc/Color.java (93%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/markup/markdown/Markdown.java (95%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/markup/markdown/MarkdownBuilder.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Body.java (81%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/BodyMode.java (61%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Folder.java (83%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Info.java (80%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Item.java (85%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Parameter.java (80%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Postman.java (84%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Request.java (60%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Response.java (73%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/common/postman/Url.java (82%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/parser/ParserStrategy.java (85%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/parser/VisitorParser.java (95%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/render/AsciiDocRender.java (91%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/render/MarkdownRender.java (83%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/render/PostmanRender.java (91%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/render/ProjectRender.java (64%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/ArrayTypeResolver.java (60%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/CollectionTypeResolver.java (73%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/DateTypeResolver.java (79%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/EnumTypeResolver.java (80%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/MapTypeResolver.java (80%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/ObjectTypeResolver.java (91%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/PrimitiveTypeResolver.java (82%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/StringTypeResolver.java (77%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/SystemObjectTypeResolver.java (74%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/TypeNameResolver.java (53%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/TypeResolver.java (57%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/resolver/TypeResolvers.java (89%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Appendix.java (90%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Book.java (90%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Cell.java (97%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Chapter.java (88%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Header.java (96%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Method.java (94%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Node.java (93%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Project.java (95%) create mode 100644 apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/RequestParameterType.java rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Row.java (93%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Section.java (94%) rename apidoc-core/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/core/schema/Tag.java (93%) delete mode 100644 apidoc-core/src/main/java/com/kim/apidoc/core/schema/RequestParameterType.java rename apidoc-springmvc/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/springmvc/ParameterHelper.java (97%) rename apidoc-springmvc/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/springmvc/RequestMappingHelper.java (95%) rename apidoc-springmvc/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/springmvc/SpringMVCContext.java (94%) rename apidoc-springmvc/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/springmvc/SpringParser.java (90%) rename apidoc-springmvc/src/main/java/com/{kim => github/fengyuchenglun}/apidoc/springmvc/resovler/SpringComponentTypeResolver.java (76%) create mode 100644 apidoc-springmvc/src/main/resources/META-INF/services/com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy delete mode 100644 apidoc-springmvc/src/main/resources/META-INF/services/com.kim.apidoc.core.parser.ParserStrategy rename apidoc-springmvc/src/test/java/com/{kim => github/fengyuchenglun}/apidoc/springmvc/SpringTest.java (88%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/ApigccTest.java (83%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/annotation/KimController.java (93%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/annotation/KimResponseBody.java (88%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/Code.java (80%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/Menu.java (74%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/Page.java (88%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/Query.java (80%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/ResultData.java (90%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/Role.java (84%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/StaticFinalCode.java (77%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/User.java (89%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/UserDTO.java (89%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/UserDetails.java (77%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/UserQuery.java (75%) rename apidoc-springmvc/src/test/java/com/{kim/apidoc => github/fengyuchenglun}/example/common/Wrapper.java (70%) create mode 100644 apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/spring/advanced/UserController.java delete mode 100644 apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/UserController.java diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/ApiDoc.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/ApiDoc.java similarity index 91% rename from apidoc-core/src/main/java/com/kim/apidoc/core/ApiDoc.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/ApiDoc.java index 6984ddd..6ac3d42 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/ApiDoc.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/ApiDoc.java @@ -1,11 +1,11 @@ -package com.kim.apidoc.core; - -import com.kim.apidoc.core.common.helper.StringHelper; -import com.kim.apidoc.core.parser.ParserStrategy; -import com.kim.apidoc.core.parser.VisitorParser; -import com.kim.apidoc.core.render.ProjectRender; -import com.kim.apidoc.core.resolver.TypeResolvers; -import com.kim.apidoc.core.schema.Project; +package com.github.fengyuchenglun.apidoc.core; + +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; +import com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy; +import com.github.fengyuchenglun.apidoc.core.parser.VisitorParser; +import com.github.fengyuchenglun.apidoc.core.render.ProjectRender; +import com.github.fengyuchenglun.apidoc.core.resolver.TypeResolvers; +import com.github.fengyuchenglun.apidoc.core.schema.Project; import com.github.javaparser.ParseResult; import com.github.javaparser.ParserConfiguration; import com.github.javaparser.ast.CompilationUnit; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/Context.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/Context.java similarity index 87% rename from apidoc-core/src/main/java/com/kim/apidoc/core/Context.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/Context.java index bb58954..44d11ad 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/Context.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/Context.java @@ -1,10 +1,11 @@ -package com.kim.apidoc.core; +package com.github.fengyuchenglun.apidoc.core; +import com.github.fengyuchenglun.apidoc.core.common.Constants; import com.google.common.collect.Lists; import com.google.common.collect.Maps; -import com.kim.apidoc.core.common.helper.FileHelper; -import com.kim.apidoc.core.render.MarkdownRender; -import com.kim.apidoc.core.render.ProjectRender; +import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper; +import com.github.fengyuchenglun.apidoc.core.render.MarkdownRender; +import com.github.fengyuchenglun.apidoc.core.render.ProjectRender; import lombok.Getter; import lombok.Setter; @@ -13,8 +14,6 @@ import java.nio.file.Paths; import java.util.List; import java.util.Map; -import static com.kim.apidoc.core.common.Constants.MARKDOWN_TEMPLATE; - /** * The type Context. * @@ -109,7 +108,7 @@ public class Context { * markdown模版文件路径 */ @Setter - private String markdownTemplate = MARKDOWN_TEMPLATE; + private String markdownTemplate = Constants.MARKDOWN_TEMPLATE; /** * 自定义扩展参数 diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/Assert.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/Assert.java similarity index 91% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/Assert.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/Assert.java index ea8bcb2..b0b887e 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/Assert.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/Assert.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common; +package com.github.fengyuchenglun.apidoc.core.common; import com.google.common.base.Strings; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/Constants.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/Constants.java similarity index 89% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/Constants.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/Constants.java index a28605a..622d0e8 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/Constants.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/Constants.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common; +package com.github.fengyuchenglun.apidoc.core.common; import java.nio.charset.StandardCharsets; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/ObjectMappers.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/ObjectMappers.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/ObjectMappers.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/ObjectMappers.java index d8fa44b..6e4d36e 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/ObjectMappers.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/ObjectMappers.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common; +package com.github.fengyuchenglun.apidoc.core.common; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/QueryStringBuilder.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/QueryStringBuilder.java similarity index 94% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/QueryStringBuilder.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/QueryStringBuilder.java index a5886cb..9210614 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/QueryStringBuilder.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/QueryStringBuilder.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common; +package com.github.fengyuchenglun.apidoc.core.common; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/URI.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/URI.java similarity index 91% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/URI.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/URI.java index 3ae00f5..d70d1eb 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/URI.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/URI.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.common; +package com.github.fengyuchenglun.apidoc.core.common; -import com.kim.apidoc.core.common.helper.StringHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; import com.google.common.collect.Lists; import lombok.EqualsAndHashCode; import lombok.Getter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/ArrayTypeDescription.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/ArrayTypeDescription.java similarity index 93% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/description/ArrayTypeDescription.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/ArrayTypeDescription.java index 4b05db0..d4cebc3 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/ArrayTypeDescription.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/ArrayTypeDescription.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.common.description; +package com.github.fengyuchenglun.apidoc.core.common.description; -import com.kim.apidoc.core.schema.Row; -import com.kim.apidoc.core.common.ObjectMappers; +import com.github.fengyuchenglun.apidoc.core.common.ObjectMappers; +import com.github.fengyuchenglun.apidoc.core.schema.Row; import com.fasterxml.jackson.databind.node.ArrayNode; import java.util.ArrayList; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/ObjectTypeDescription.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/ObjectTypeDescription.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/description/ObjectTypeDescription.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/ObjectTypeDescription.java index 8aba8aa..4b6fd05 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/ObjectTypeDescription.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/ObjectTypeDescription.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.common.description; +package com.github.fengyuchenglun.apidoc.core.common.description; -import com.kim.apidoc.core.schema.Row; -import com.kim.apidoc.core.common.ObjectMappers; +import com.github.fengyuchenglun.apidoc.core.common.ObjectMappers; +import com.github.fengyuchenglun.apidoc.core.schema.Row; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.collect.Lists; import lombok.Getter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/PrimitiveTypeDescription.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/PrimitiveTypeDescription.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/description/PrimitiveTypeDescription.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/PrimitiveTypeDescription.java index 84e53a5..71d36d2 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/PrimitiveTypeDescription.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/PrimitiveTypeDescription.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.description; +package com.github.fengyuchenglun.apidoc.core.common.description; import com.github.javaparser.resolution.types.ResolvedPrimitiveType; import com.github.javaparser.resolution.types.ResolvedReferenceType; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/StringTypeDescription.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/StringTypeDescription.java similarity index 87% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/description/StringTypeDescription.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/StringTypeDescription.java index 021bd95..597be89 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/StringTypeDescription.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/StringTypeDescription.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.description; +package com.github.fengyuchenglun.apidoc.core.common.description; /** * 字符串类型 diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/TypeDescription.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/TypeDescription.java similarity index 94% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/description/TypeDescription.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/TypeDescription.java index 0727e22..690c3f7 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/TypeDescription.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/TypeDescription.java @@ -1,11 +1,11 @@ -package com.kim.apidoc.core.common.description; +package com.github.fengyuchenglun.apidoc.core.common.description; +import com.github.fengyuchenglun.apidoc.core.common.helper.CommentHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; +import com.github.fengyuchenglun.apidoc.core.schema.Row; import com.github.javaparser.ast.comments.Comment; import com.github.javaparser.javadoc.Javadoc; import com.google.common.collect.Lists; -import com.kim.apidoc.core.common.helper.CommentHelper; -import com.kim.apidoc.core.common.helper.StringHelper; -import com.kim.apidoc.core.schema.Row; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/UnAvailableTypeDescription.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/UnAvailableTypeDescription.java similarity index 78% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/description/UnAvailableTypeDescription.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/UnAvailableTypeDescription.java index a294121..4261239 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/description/UnAvailableTypeDescription.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/description/UnAvailableTypeDescription.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.common.description; +package com.github.fengyuchenglun.apidoc.core.common.description; -import com.kim.apidoc.core.schema.Row; +import com.github.fengyuchenglun.apidoc.core.schema.Row; import java.util.Collection; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/FileMatcher.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/FileMatcher.java similarity index 98% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/FileMatcher.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/FileMatcher.java index 14031b8..753a331 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/FileMatcher.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/FileMatcher.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.diff; +package com.github.fengyuchenglun.apidoc.core.common.diff; import com.google.common.base.Charsets; import lombok.Getter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/FileSystem.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/FileSystem.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/FileSystem.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/FileSystem.java index 0f6115f..c4d97cd 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/FileSystem.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/FileSystem.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.diff; +package com.github.fengyuchenglun.apidoc.core.common.diff; import java.awt.*; import java.io.File; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/MatchPatcher.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/MatchPatcher.java similarity index 99% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/MatchPatcher.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/MatchPatcher.java index 311bf40..ce88a3d 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/diff/MatchPatcher.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/diff/MatchPatcher.java @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.kim.apidoc.core.common.diff; +package com.github.fengyuchenglun.apidoc.core.common.diff; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/AnnotationHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/AnnotationHelper.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/AnnotationHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/AnnotationHelper.java index a539365..3c3559e 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/AnnotationHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/AnnotationHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.expr.*; import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ClassDeclarationHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ClassDeclarationHelper.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ClassDeclarationHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ClassDeclarationHelper.java index 3ea0d10..4cae235 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ClassDeclarationHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ClassDeclarationHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.type.ClassOrInterfaceType; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/CommentHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/CommentHelper.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/CommentHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/CommentHelper.java index 86e8f7e..67b6522 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/CommentHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/CommentHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/CompilationUnitHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/CompilationUnitHelper.java similarity index 89% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/CompilationUnitHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/CompilationUnitHelper.java index dbb34bf..b88c4af 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/CompilationUnitHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/CompilationUnitHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.Node; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/EnumHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/EnumHelper.java similarity index 93% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/EnumHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/EnumHelper.java index 558b268..a98abc5 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/EnumHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/EnumHelper.java @@ -1,11 +1,11 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; +import com.github.fengyuchenglun.apidoc.core.schema.Cell; import com.github.javaparser.ast.body.EnumConstantDeclaration; import com.github.javaparser.ast.body.EnumDeclaration; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration; import com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration; -import com.kim.apidoc.core.schema.Cell; import java.util.ArrayList; import java.util.List; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ExpressionHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ExpressionHelper.java similarity index 98% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ExpressionHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ExpressionHelper.java index a208309..dc7e0cd 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ExpressionHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ExpressionHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.expr.*; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/FieldHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/FieldHelper.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/FieldHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/FieldHelper.java index c098ede..c3afa25 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/FieldHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/FieldHelper.java @@ -1,13 +1,12 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; +import com.github.fengyuchenglun.apidoc.core.schema.Cell; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.body.VariableDeclarator; -import com.github.javaparser.ast.comments.Comment; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration; import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration; -import com.kim.apidoc.core.schema.Cell; import java.util.ArrayList; import java.util.List; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/FileHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/FileHelper.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/FileHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/FileHelper.java index 59247b8..f4ac61f 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/FileHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/FileHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/JsonPropertyHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/JsonPropertyHelper.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/JsonPropertyHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/JsonPropertyHelper.java index 447b79d..1ae4e22 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/JsonPropertyHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/JsonPropertyHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.expr.AnnotationExpr; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/OptionalHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/OptionalHelper.java similarity index 84% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/OptionalHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/OptionalHelper.java index 8aab28b..d7a58d9 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/OptionalHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/OptionalHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import java.util.Optional; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ReferenceContext.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ReferenceContext.java similarity index 92% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ReferenceContext.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ReferenceContext.java index 8ef8fcd..625fad4 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ReferenceContext.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ReferenceContext.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.google.common.collect.Sets; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/StringHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/StringHelper.java similarity index 94% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/StringHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/StringHelper.java index 14f9f4e..f71b5df 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/StringHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/StringHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.google.common.base.Strings; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/TypeNameHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/TypeNameHelper.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/TypeNameHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/TypeNameHelper.java index 64fef12..90e5c10 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/TypeNameHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/TypeNameHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.ImportDeclaration; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/TypeParameterHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/TypeParameterHelper.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/TypeParameterHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/TypeParameterHelper.java index 42ad047..3412991 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/TypeParameterHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/TypeParameterHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration; import com.github.javaparser.resolution.types.ResolvedReferenceType; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ValidationHelper.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ValidationHelper.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ValidationHelper.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ValidationHelper.java index 44f849b..b66b5c1 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/helper/ValidationHelper.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/helper/ValidationHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.helper; +package com.github.fengyuchenglun.apidoc.core.common.helper; import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.expr.AnnotationExpr; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/MarkupBuilder.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/MarkupBuilder.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/MarkupBuilder.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/MarkupBuilder.java index 629ef8f..c391c8e 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/MarkupBuilder.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/MarkupBuilder.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.common.markup; +package com.github.fengyuchenglun.apidoc.core.common.markup; -import com.kim.apidoc.core.common.markup.asciidoc.AsciiDocBuilder; +import com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc.AsciiDocBuilder; import java.util.List; import java.util.function.Consumer; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/AsciiDoc.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/AsciiDoc.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/AsciiDoc.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/AsciiDoc.java index c114e5e..d86e0c6 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/AsciiDoc.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/AsciiDoc.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.markup.asciidoc; +package com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc; public enum AsciiDoc implements CharSequence { EXTENSION(".adoc"), diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java index 9642f9a..dbac701 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/AsciiDocBuilder.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.common.markup.asciidoc; +package com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc; -import com.kim.apidoc.core.common.markup.MarkupBuilder; -import com.kim.apidoc.core.common.Assert; +import com.github.fengyuchenglun.apidoc.core.common.Assert; +import com.github.fengyuchenglun.apidoc.core.common.markup.MarkupBuilder; import com.google.common.base.Strings; import java.util.List; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/Color.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/Color.java similarity index 93% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/Color.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/Color.java index b7ca387..64e0e76 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/asciidoc/Color.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/asciidoc/Color.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.markup.asciidoc; +package com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc; /** * https://en.wikipedia.org/wiki/Web_colors#HTML_color_names diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/markdown/Markdown.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/markdown/Markdown.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/markdown/Markdown.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/markdown/Markdown.java index 8fdb93f..f7ede24 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/markdown/Markdown.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/markdown/Markdown.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.markup.markdown; +package com.github.fengyuchenglun.apidoc.core.common.markup.markdown; public enum Markdown implements CharSequence { EXTENSION(".md"), diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/markdown/MarkdownBuilder.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/markdown/MarkdownBuilder.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/markdown/MarkdownBuilder.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/markdown/MarkdownBuilder.java index 1c80669..882ddc4 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/markup/markdown/MarkdownBuilder.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/markup/markdown/MarkdownBuilder.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.common.markup.markdown; +package com.github.fengyuchenglun.apidoc.core.common.markup.markdown; -import com.kim.apidoc.core.common.markup.MarkupBuilder; -import com.kim.apidoc.core.common.Assert; +import com.github.fengyuchenglun.apidoc.core.common.Assert; +import com.github.fengyuchenglun.apidoc.core.common.markup.MarkupBuilder; import com.google.common.base.Strings; import java.util.List; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Body.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Body.java similarity index 81% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Body.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Body.java index b3a32fe..03a90d4 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Body.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Body.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/BodyMode.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/BodyMode.java similarity index 61% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/BodyMode.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/BodyMode.java index 3972bd9..7102cbe 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/BodyMode.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/BodyMode.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; /** * 对应postman定义的mode diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Folder.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Folder.java similarity index 83% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Folder.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Folder.java index be112fb..afd838e 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Folder.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Folder.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Getter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Info.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Info.java similarity index 80% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Info.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Info.java index 32ea847..77b94ca 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Info.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Info.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Item.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Item.java similarity index 85% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Item.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Item.java index 9cd90f5..9af48e7 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Item.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Item.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Parameter.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Parameter.java similarity index 80% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Parameter.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Parameter.java index 26f8aaa..d8e2c12 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Parameter.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Parameter.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; -import com.kim.apidoc.core.schema.Row; +import com.github.fengyuchenglun.apidoc.core.schema.Row; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Postman.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Postman.java similarity index 84% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Postman.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Postman.java index 1d6be5d..03738d5 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Postman.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Postman.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Request.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Request.java similarity index 60% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Request.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Request.java index e54cbcb..b226aab 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Request.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Request.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; -import com.kim.apidoc.core.schema.Header; -import com.kim.apidoc.core.schema.Method; +import com.github.fengyuchenglun.apidoc.core.schema.Header; +import com.github.fengyuchenglun.apidoc.core.schema.Method; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Response.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Response.java similarity index 73% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Response.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Response.java index b8ef739..ff0e3c3 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Response.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Response.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; -import com.kim.apidoc.core.schema.Header; +import com.github.fengyuchenglun.apidoc.core.schema.Header; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Url.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Url.java similarity index 82% rename from apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Url.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Url.java index 3cb84e0..a0bf223 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/common/postman/Url.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/common/postman/Url.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.common.postman; +package com.github.fengyuchenglun.apidoc.core.common.postman; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/parser/ParserStrategy.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/parser/ParserStrategy.java similarity index 85% rename from apidoc-core/src/main/java/com/kim/apidoc/core/parser/ParserStrategy.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/parser/ParserStrategy.java index f7e3331..2bb5075 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/parser/ParserStrategy.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/parser/ParserStrategy.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.parser; +package com.github.fengyuchenglun.apidoc.core.parser; -import com.kim.apidoc.core.schema.Chapter; -import com.kim.apidoc.core.schema.Section; +import com.github.fengyuchenglun.apidoc.core.schema.Chapter; +import com.github.fengyuchenglun.apidoc.core.schema.Section; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/parser/VisitorParser.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/parser/VisitorParser.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/parser/VisitorParser.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/parser/VisitorParser.java index f3a00bb..7472041 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/parser/VisitorParser.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/parser/VisitorParser.java @@ -1,13 +1,13 @@ -package com.kim.apidoc.core.parser; +package com.github.fengyuchenglun.apidoc.core.parser; +import com.github.fengyuchenglun.apidoc.core.schema.*; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.EnumDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.comments.JavadocComment; import com.github.javaparser.ast.visitor.VoidVisitorAdapter; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.helper.OptionalHelper; -import com.kim.apidoc.core.schema.*; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.helper.OptionalHelper; /** diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/render/AsciiDocRender.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/AsciiDocRender.java similarity index 91% rename from apidoc-core/src/main/java/com/kim/apidoc/core/render/AsciiDocRender.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/AsciiDocRender.java index 491dc2e..07f25e9 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/render/AsciiDocRender.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/AsciiDocRender.java @@ -1,12 +1,12 @@ -package com.kim.apidoc.core.render; +package com.github.fengyuchenglun.apidoc.core.render; +import com.github.fengyuchenglun.apidoc.core.schema.*; import com.google.common.collect.Lists; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.helper.FileHelper; -import com.kim.apidoc.core.common.helper.StringHelper; -import com.kim.apidoc.core.common.markup.MarkupBuilder; -import com.kim.apidoc.core.common.markup.asciidoc.AsciiDoc; -import com.kim.apidoc.core.schema.*; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; +import com.github.fengyuchenglun.apidoc.core.common.markup.MarkupBuilder; +import com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc.AsciiDoc; import lombok.extern.slf4j.Slf4j; import org.asciidoctor.Asciidoctor; import org.asciidoctor.AttributesBuilder; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/render/MarkdownRender.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/MarkdownRender.java similarity index 83% rename from apidoc-core/src/main/java/com/kim/apidoc/core/render/MarkdownRender.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/MarkdownRender.java index 4943527..6e95f2a 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/render/MarkdownRender.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/MarkdownRender.java @@ -1,16 +1,13 @@ -package com.kim.apidoc.core.render; +package com.github.fengyuchenglun.apidoc.core.render; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.Constants; -import com.kim.apidoc.core.common.ObjectMappers; -import com.kim.apidoc.core.common.helper.FileHelper; -import com.kim.apidoc.core.schema.Project; +import com.github.fengyuchenglun.apidoc.core.common.Constants; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper; +import com.github.fengyuchenglun.apidoc.core.schema.Project; import freemarker.template.Configuration; import freemarker.template.Template; import lombok.extern.slf4j.Slf4j; -import java.io.FileOutputStream; -import java.io.OutputStreamWriter; import java.io.StringWriter; import java.nio.file.Path; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/render/PostmanRender.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/PostmanRender.java similarity index 91% rename from apidoc-core/src/main/java/com/kim/apidoc/core/render/PostmanRender.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/PostmanRender.java index 325add5..538ec81 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/render/PostmanRender.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/PostmanRender.java @@ -1,11 +1,11 @@ -package com.kim.apidoc.core.render; +package com.github.fengyuchenglun.apidoc.core.render; import com.fasterxml.jackson.databind.node.ObjectNode; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.ObjectMappers; -import com.kim.apidoc.core.common.helper.FileHelper; -import com.kim.apidoc.core.common.postman.*; -import com.kim.apidoc.core.schema.*; +import com.github.fengyuchenglun.apidoc.core.common.ObjectMappers; +import com.github.fengyuchenglun.apidoc.core.common.postman.*; +import com.github.fengyuchenglun.apidoc.core.schema.*; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper; import lombok.extern.slf4j.Slf4j; import java.nio.file.Path; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/render/ProjectRender.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/ProjectRender.java similarity index 64% rename from apidoc-core/src/main/java/com/kim/apidoc/core/render/ProjectRender.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/ProjectRender.java index c2c3661..4c9d3c6 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/render/ProjectRender.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/render/ProjectRender.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.render; +package com.github.fengyuchenglun.apidoc.core.render; -import com.kim.apidoc.core.schema.Project; +import com.github.fengyuchenglun.apidoc.core.schema.Project; /** * The interface Project render. diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/ArrayTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/ArrayTypeResolver.java similarity index 60% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/ArrayTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/ArrayTypeResolver.java index 76f2296..afd5699 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/ArrayTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/ArrayTypeResolver.java @@ -1,8 +1,8 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.ArrayTypeDescription; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.ArrayTypeDescription; import com.github.javaparser.resolution.types.ResolvedType; public class ArrayTypeResolver implements TypeResolver { diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/CollectionTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/CollectionTypeResolver.java similarity index 73% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/CollectionTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/CollectionTypeResolver.java index f08cc10..6acb9d1 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/CollectionTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/CollectionTypeResolver.java @@ -1,10 +1,10 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.helper.TypeParameterHelper; -import com.kim.apidoc.core.common.description.ArrayTypeDescription; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.helper.TypeParameterHelper; +import com.github.fengyuchenglun.apidoc.core.common.description.ArrayTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.javaparser.resolution.types.ResolvedType; import com.google.common.collect.ImmutableList; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/DateTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/DateTypeResolver.java similarity index 79% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/DateTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/DateTypeResolver.java index 9c9f20d..c6355e9 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/DateTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/DateTypeResolver.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.StringTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.StringTypeDescription; import com.github.javaparser.resolution.types.ResolvedType; import com.google.common.collect.ImmutableList; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/EnumTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/EnumTypeResolver.java similarity index 80% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/EnumTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/EnumTypeResolver.java index 306f27c..47b417c 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/EnumTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/EnumTypeResolver.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.StringTypeDescription; -import com.kim.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.StringTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration; import com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration; import com.github.javaparser.resolution.types.ResolvedType; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/MapTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/MapTypeResolver.java similarity index 80% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/MapTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/MapTypeResolver.java index 8118dab..cf63d34 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/MapTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/MapTypeResolver.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.javaparser.resolution.types.ResolvedType; import com.google.common.collect.ImmutableList; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/ObjectTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/ObjectTypeResolver.java similarity index 91% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/ObjectTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/ObjectTypeResolver.java index 8a9bf37..b77c042 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/ObjectTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/ObjectTypeResolver.java @@ -1,13 +1,13 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; +import com.github.fengyuchenglun.apidoc.core.common.helper.*; import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration; import com.github.javaparser.resolution.types.ResolvedReferenceType; import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserClassDeclaration; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.description.ObjectTypeDescription; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.helper.*; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.description.ObjectTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; import java.util.Optional; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/PrimitiveTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/PrimitiveTypeResolver.java similarity index 82% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/PrimitiveTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/PrimitiveTypeResolver.java index fde1fe2..ca7cfce 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/PrimitiveTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/PrimitiveTypeResolver.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.PrimitiveTypeDescription; -import com.kim.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.PrimitiveTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; import com.github.javaparser.resolution.types.ResolvedType; import com.google.common.collect.ImmutableList; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/StringTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/StringTypeResolver.java similarity index 77% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/StringTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/StringTypeResolver.java index 2954444..a4e48e4 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/StringTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/StringTypeResolver.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.StringTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.StringTypeDescription; import com.github.javaparser.resolution.types.ResolvedType; import com.google.common.collect.ImmutableList; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/SystemObjectTypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/SystemObjectTypeResolver.java similarity index 74% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/SystemObjectTypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/SystemObjectTypeResolver.java index da8ffb3..fa9997f 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/SystemObjectTypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/SystemObjectTypeResolver.java @@ -1,7 +1,7 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.javaparser.resolution.types.ResolvedType; public class SystemObjectTypeResolver implements TypeResolver { diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeNameResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeNameResolver.java similarity index 53% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeNameResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeNameResolver.java index 92efd8e..b8f4a48 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeNameResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeNameResolver.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; import com.github.javaparser.ast.type.Type; public interface TypeNameResolver { diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeResolver.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeResolver.java similarity index 57% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeResolver.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeResolver.java index 3d9a3c7..bdc2079 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeResolver.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeResolver.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; import com.github.javaparser.resolution.types.ResolvedType; public interface TypeResolver { diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeResolvers.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeResolvers.java similarity index 89% rename from apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeResolvers.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeResolvers.java index 4858478..a6abcd0 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/resolver/TypeResolvers.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/resolver/TypeResolvers.java @@ -1,8 +1,8 @@ -package com.kim.apidoc.core.resolver; +package com.github.fengyuchenglun.apidoc.core.resolver; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.helper.TypeNameHelper; -import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.helper.TypeNameHelper; +import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.javaparser.ast.type.Type; import com.github.javaparser.resolution.UnsolvedSymbolException; import com.github.javaparser.resolution.types.ResolvedType; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Appendix.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Appendix.java similarity index 90% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Appendix.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Appendix.java index b2148ff..058765d 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Appendix.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Appendix.java @@ -1,11 +1,10 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import com.github.javaparser.ast.body.BodyDeclaration; import com.github.javaparser.ast.comments.JavadocComment; import com.github.javaparser.ast.nodeTypes.NodeWithSimpleName; -import com.kim.apidoc.core.common.helper.EnumHelper; -import com.kim.apidoc.core.common.helper.FieldHelper; -import com.kim.apidoc.core.common.helper.FileHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.EnumHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.FieldHelper; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Book.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Book.java similarity index 90% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Book.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Book.java index dfd2da2..20045d3 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Book.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Book.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Cell.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Cell.java similarity index 97% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Cell.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Cell.java index 91739e0..b2fee04 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Cell.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Cell.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import com.google.common.collect.Lists; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Chapter.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Chapter.java similarity index 88% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Chapter.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Chapter.java index 99b7e64..9b7da8e 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Chapter.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Chapter.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Header.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Header.java similarity index 96% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Header.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Header.java index cd99d64..481bb49 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Header.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Header.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Method.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Method.java similarity index 94% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Method.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Method.java index 31c09d7..a1e9c02 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Method.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Method.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import lombok.extern.slf4j.Slf4j; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Node.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Node.java similarity index 93% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Node.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Node.java index 63d628c..aeaf8ea 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Node.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Node.java @@ -1,10 +1,10 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; +import com.github.fengyuchenglun.apidoc.core.Context; import com.github.javaparser.ast.comments.Comment; import com.github.javaparser.javadoc.Javadoc; -import com.kim.apidoc.core.Context; -import com.kim.apidoc.core.common.helper.CommentHelper; -import com.kim.apidoc.core.common.helper.StringHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.CommentHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Project.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Project.java similarity index 95% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Project.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Project.java index ae219b6..43609d4 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Project.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Project.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import lombok.Getter; diff --git a/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/RequestParameterType.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/RequestParameterType.java new file mode 100644 index 0000000..98c3315 --- /dev/null +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/RequestParameterType.java @@ -0,0 +1,52 @@ +package com.github.fengyuchenglun.apidoc.core.schema; + +/** + * 请求参数枚举类型 + * + * @author duanledexianxianxian + * @date 2020 /3/29 0:37 + * @since 1.0.0 + */ +public enum RequestParameterType { + /** + * 查询参数. + */ + QUERY("QUERY", "查询参数"), + /** + * 路径参数. + */ + PATH("PATH", "路径参数"), + /** + * 请求参数体. + */ + BODY("BODY", "请求体"); + /** + * 编码 + */ + private String code; + /** + * 信息 + */ + private String msg; + + RequestParameterType(String code, String msg) { + this.code = code; + this.msg = msg; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } +} diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Row.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Row.java similarity index 93% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Row.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Row.java index 9d3a51b..13adc24 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Row.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Row.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import lombok.*; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Section.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Section.java similarity index 94% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Section.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Section.java index dcbd1e5..6d69374 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Section.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Section.java @@ -1,8 +1,8 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; -import com.kim.apidoc.core.common.ObjectMappers; -import com.kim.apidoc.core.common.QueryStringBuilder; -import com.kim.apidoc.core.common.helper.StringHelper; +import com.github.fengyuchenglun.apidoc.core.common.ObjectMappers; +import com.github.fengyuchenglun.apidoc.core.common.QueryStringBuilder; +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import lombok.Getter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Tag.java b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Tag.java similarity index 93% rename from apidoc-core/src/main/java/com/kim/apidoc/core/schema/Tag.java rename to apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Tag.java index 899ed62..5122332 100644 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/Tag.java +++ b/apidoc-core/src/main/java/com/github/fengyuchenglun/apidoc/core/schema/Tag.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.core.schema; +package com.github.fengyuchenglun.apidoc.core.schema; import lombok.Getter; import lombok.Setter; diff --git a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/RequestParameterType.java b/apidoc-core/src/main/java/com/kim/apidoc/core/schema/RequestParameterType.java deleted file mode 100644 index dc17e8a..0000000 --- a/apidoc-core/src/main/java/com/kim/apidoc/core/schema/RequestParameterType.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.kim.apidoc.core.schema; - -/** - * 请求参数枚举类型 - * - * @author duanledexianxianxian - * @date 2020 /3/29 0:37 - * @since 1.0.0 - */ -public enum RequestParameterType { - /** - * 查询参数. - */ - QUERY, - /** - * 路径参数. - */ - PATH, - /** - * 请求参数体. - */ - BODY -} diff --git a/apidoc-core/src/main/resources/templates/markdown.ftl b/apidoc-core/src/main/resources/templates/markdown.ftl index 814d6dd..bfe474c 100644 --- a/apidoc-core/src/main/resources/templates/markdown.ftl +++ b/apidoc-core/src/main/resources/templates/markdown.ftl @@ -1,8 +1,6 @@ [TOC] - - <#-- ---------- BEGIN 循环遍历book ----------> <#if books??> <#list books as bookKey,bookValue> diff --git a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/ParameterHelper.java b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/ParameterHelper.java similarity index 97% rename from apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/ParameterHelper.java rename to apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/ParameterHelper.java index 43901de..dc99796 100644 --- a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/ParameterHelper.java +++ b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/ParameterHelper.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.springmvc; +package com.github.fengyuchenglun.apidoc.springmvc; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.body.Parameter; diff --git a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/RequestMappingHelper.java b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/RequestMappingHelper.java similarity index 95% rename from apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/RequestMappingHelper.java rename to apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/RequestMappingHelper.java index e1624c3..cb204ec 100644 --- a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/RequestMappingHelper.java +++ b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/RequestMappingHelper.java @@ -1,10 +1,10 @@ -package com.kim.apidoc.springmvc; +package com.github.fengyuchenglun.apidoc.springmvc; -import com.kim.apidoc.core.common.URI; -import com.kim.apidoc.core.common.helper.AnnotationHelper; -import com.kim.apidoc.core.common.helper.ClassDeclarationHelper; -import com.kim.apidoc.core.common.helper.ExpressionHelper; -import com.kim.apidoc.core.schema.Method; +import com.github.fengyuchenglun.apidoc.core.common.URI; +import com.github.fengyuchenglun.apidoc.core.common.helper.AnnotationHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.ClassDeclarationHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.ExpressionHelper; +import com.github.fengyuchenglun.apidoc.core.schema.Method; import com.github.javaparser.ast.Node; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; diff --git a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/SpringMVCContext.java b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/SpringMVCContext.java similarity index 94% rename from apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/SpringMVCContext.java rename to apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/SpringMVCContext.java index 53b65a9..3dc7965 100644 --- a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/SpringMVCContext.java +++ b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/SpringMVCContext.java @@ -1,6 +1,6 @@ -package com.kim.apidoc.springmvc; +package com.github.fengyuchenglun.apidoc.springmvc; -import com.kim.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; import com.google.common.collect.Lists; import lombok.Data; diff --git a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/SpringParser.java b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/SpringParser.java similarity index 90% rename from apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/SpringParser.java rename to apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/SpringParser.java index e80c81a..6a63490 100644 --- a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/SpringParser.java +++ b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/SpringParser.java @@ -1,27 +1,30 @@ -package com.kim.apidoc.springmvc; +package com.github.fengyuchenglun.apidoc.springmvc; +import com.github.fengyuchenglun.apidoc.core.common.helper.AnnotationHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.ClassDeclarationHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.ExpressionHelper; +import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.expr.AnnotationExpr; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.type.ClassOrInterfaceType; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.URI; -import com.kim.apidoc.core.common.description.ObjectTypeDescription; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.helper.*; -import com.kim.apidoc.core.parser.ParserStrategy; -import com.kim.apidoc.core.schema.Chapter; -import com.kim.apidoc.core.schema.Header; -import com.kim.apidoc.core.schema.Row; -import com.kim.apidoc.core.schema.Section; -import com.kim.apidoc.springmvc.resovler.SpringComponentTypeResolver; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.URI; +import com.github.fengyuchenglun.apidoc.core.common.description.ObjectTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy; +import com.github.fengyuchenglun.apidoc.core.schema.Chapter; +import com.github.fengyuchenglun.apidoc.core.schema.Header; +import com.github.fengyuchenglun.apidoc.core.schema.Row; +import com.github.fengyuchenglun.apidoc.core.schema.Section; +import com.github.fengyuchenglun.apidoc.springmvc.resovler.SpringComponentTypeResolver; import java.util.List; import java.util.Optional; -import static com.kim.apidoc.core.schema.RequestParameterType.*; +import static com.github.fengyuchenglun.apidoc.core.schema.RequestParameterType.*; /** @@ -157,7 +160,7 @@ public class SpringParser implements ParserStrategy { if (ParameterHelper.isPathVariable(parameter)) { section.getPathVariable().put(parameter.getNameAsString(), ""); Row row = new Row(); - row.setRequestParameterType(PATH.name()); + row.setRequestParameterType(PATH.getMsg()); row.setKey(parameter.getNameAsString()); row.setType(parameter.getType().toString()); // 路径参数必填 @@ -236,7 +239,7 @@ public class SpringParser implements ParserStrategy { } else if (description.isObject()) { section.setParameter(description.asObject().getValue()); } - section.addRequestRows(description.rows(BODY.name())); + section.addRequestRows(description.rows(BODY.getMsg())); } break; } @@ -295,11 +298,11 @@ public class SpringParser implements ParserStrategy { } } section.setParameter(objectTypeDescription.getValue()); - section.addRequestRows(objectTypeDescription.rows(QUERY.name())); + section.addRequestRows(objectTypeDescription.rows(QUERY.getMsg())); } /** - * 解析方法返回参 数 + * 解析方法返回参数 * * @param n the n * @param chapter the chapter diff --git a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/resovler/SpringComponentTypeResolver.java b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/resovler/SpringComponentTypeResolver.java similarity index 76% rename from apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/resovler/SpringComponentTypeResolver.java rename to apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/resovler/SpringComponentTypeResolver.java index 6278094..1ccde16 100644 --- a/apidoc-springmvc/src/main/java/com/kim/apidoc/springmvc/resovler/SpringComponentTypeResolver.java +++ b/apidoc-springmvc/src/main/java/com/github/fengyuchenglun/apidoc/springmvc/resovler/SpringComponentTypeResolver.java @@ -1,11 +1,11 @@ -package com.kim.apidoc.springmvc.resovler; - -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.common.description.TypeDescription; -import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; -import com.kim.apidoc.core.common.helper.TypeParameterHelper; -import com.kim.apidoc.core.resolver.TypeNameResolver; -import com.kim.apidoc.core.resolver.TypeResolver; +package com.github.fengyuchenglun.apidoc.springmvc.resovler; + +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription; +import com.github.fengyuchenglun.apidoc.core.common.helper.TypeParameterHelper; +import com.github.fengyuchenglun.apidoc.core.resolver.TypeNameResolver; +import com.github.fengyuchenglun.apidoc.core.resolver.TypeResolver; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.type.Type; import com.github.javaparser.resolution.types.ResolvedType; diff --git a/apidoc-springmvc/src/main/resources/META-INF/services/com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy b/apidoc-springmvc/src/main/resources/META-INF/services/com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy new file mode 100644 index 0000000..636dab1 --- /dev/null +++ b/apidoc-springmvc/src/main/resources/META-INF/services/com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy @@ -0,0 +1 @@ +com.github.fengyuchenglun.apidoc.springmvc.SpringParser \ No newline at end of file diff --git a/apidoc-springmvc/src/main/resources/META-INF/services/com.kim.apidoc.core.parser.ParserStrategy b/apidoc-springmvc/src/main/resources/META-INF/services/com.kim.apidoc.core.parser.ParserStrategy deleted file mode 100644 index 1867745..0000000 --- a/apidoc-springmvc/src/main/resources/META-INF/services/com.kim.apidoc.core.parser.ParserStrategy +++ /dev/null @@ -1 +0,0 @@ -com.kim.apidoc.springmvc.SpringParser \ No newline at end of file diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/springmvc/SpringTest.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/apidoc/springmvc/SpringTest.java similarity index 88% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/springmvc/SpringTest.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/apidoc/springmvc/SpringTest.java index 23b6e0d..8b719c8 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/springmvc/SpringTest.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/apidoc/springmvc/SpringTest.java @@ -1,8 +1,8 @@ -package com.kim.apidoc.springmvc; +package com.github.fengyuchenglun.apidoc.springmvc; -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.Context; -import com.kim.apidoc.core.common.diff.FileMatcher; +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.Context; +import com.github.fengyuchenglun.apidoc.core.common.diff.FileMatcher; import org.junit.Test; import java.io.IOException; @@ -17,7 +17,7 @@ public class SpringTest { Context context = new Context(); context.setId("test"); context.setName("测试项目"); - context.addSource(Paths.get("K:\\@project-dianli@\\tool\\apidoc\\apidoc-springmvc\\src\\test\\java")); + context.addSource(Paths.get("F:\\@project@\\@dianli@\\tool\\apidoc\\apidoc-springmvc\\src\\test\\java")); // context.setCss("https://darshandsoni.com/asciidoctor-skins/css/monospace.css"); ApiDoc apigcc = new ApiDoc(context); diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/ApigccTest.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/ApigccTest.java similarity index 83% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/ApigccTest.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/ApigccTest.java index f9046ea..2354b96 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/ApigccTest.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/ApigccTest.java @@ -1,33 +1,33 @@ -package com.kim.apidoc.example; - - -import com.kim.apidoc.core.ApiDoc; -import com.kim.apidoc.core.Context; -import org.junit.Test; - -import java.nio.file.Paths; - -/** - * @title Apigcc示例文档 - * @description 通过javadoc设置文档描述信息 - * 优先级大于通过Environment.description()设置的值 - * @readme 所有接口均使用Https调用 - * /app路径下的接口为app专用 - * /mini路径下的接口为小程序专用 - */ -public class ApigccTest { - - @Test - public void testApigcc() { - Context context = new Context(); - context.setId("test"); - context.setName("测试项目"); - context.addSource(Paths.get("D:/apigcc/apigcc-demo-spring")); - //context.setCss("https://darshandsoni.com/asciidoctor-skins/css/monospace.css"); - - ApiDoc apigcc = new ApiDoc(context); - apigcc.parse(); - apigcc.render(); - } - +package com.github.fengyuchenglun.example; + + +import com.github.fengyuchenglun.apidoc.core.ApiDoc; +import com.github.fengyuchenglun.apidoc.core.Context; +import org.junit.Test; + +import java.nio.file.Paths; + +/** + * @title Apigcc示例文档 + * @description 通过javadoc设置文档描述信息 + * 优先级大于通过Environment.description()设置的值 + * @readme 所有接口均使用Https调用 + * /app路径下的接口为app专用 + * /mini路径下的接口为小程序专用 + */ +public class ApigccTest { + + @Test + public void testApigcc() { + Context context = new Context(); + context.setId("test"); + context.setName("测试项目"); + context.addSource(Paths.get("D:/apigcc/apigcc-demo-spring")); + //context.setCss("https://darshandsoni.com/asciidoctor-skins/css/monospace.css"); + + ApiDoc apigcc = new ApiDoc(context); + apigcc.parse(); + apigcc.render(); + } + } \ No newline at end of file diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/annotation/KimController.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/annotation/KimController.java similarity index 93% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/annotation/KimController.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/annotation/KimController.java index 1b39ec9..42c8314 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/annotation/KimController.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/annotation/KimController.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.example.annotation; +package com.github.fengyuchenglun.example.annotation; import org.springframework.stereotype.Controller; import java.lang.annotation.ElementType; diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/annotation/KimResponseBody.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/annotation/KimResponseBody.java similarity index 88% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/annotation/KimResponseBody.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/annotation/KimResponseBody.java index ae1dd64..9b581a5 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/annotation/KimResponseBody.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/annotation/KimResponseBody.java @@ -1,4 +1,4 @@ -package com.kim.apidoc.example.annotation; +package com.github.fengyuchenglun.example.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Code.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Code.java similarity index 80% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Code.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Code.java index 2e75f78..b336e87 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Code.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Code.java @@ -1,19 +1,19 @@ -package com.kim.apidoc.example.common; - -/** - * @code - */ -public enum Code{ - - OK(0,"ok"), - ERROR(-1,"error"), - NoAuth(1,"no auth"); - - private int code; - private String text; - - Code(int code, String text) { - this.code = code; - this.text = text; - } +package com.github.fengyuchenglun.example.common; + +/** + * @code + */ +public enum Code{ + + OK(0,"ok"), + ERROR(-1,"error"), + NoAuth(1,"no auth"); + + private int code; + private String text; + + Code(int code, String text) { + this.code = code; + this.text = text; + } } \ No newline at end of file diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Menu.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Menu.java similarity index 74% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Menu.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Menu.java index 6d0a685..d25b4f4 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Menu.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Menu.java @@ -1,16 +1,16 @@ -package com.kim.apidoc.example.common; - -import lombok.Getter; -import lombok.Setter; - -import java.util.List; - -@Getter -@Setter -public class Menu { - - int id; - String name; - List menus; - -} +package com.github.fengyuchenglun.example.common; + +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +@Getter +@Setter +public class Menu { + + int id; + String name; + List menus; + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Page.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Page.java similarity index 88% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Page.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Page.java index 5a467ee..6ce38f7 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Page.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Page.java @@ -1,26 +1,26 @@ -package com.kim.apidoc.example.common; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.google.gson.annotations.SerializedName; -import lombok.Getter; -import lombok.Setter; - -@Setter -@Getter -public class Page extends Query { - - /** - * 第几页 - */ - @JsonProperty - int page = 1; - /* 每页条数 */ - @JSONField(name = "limit") - int sizs = 20; - @SerializedName("totalPage") - int total = 0; - @JsonProperty("max") - int maxPage = 0; - -} +package com.github.fengyuchenglun.example.common; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class Page extends Query { + + /** + * 第几页 + */ + @JsonProperty + int page = 1; + /* 每页条数 */ + @JSONField(name = "limit") + int sizs = 20; + @SerializedName("totalPage") + int total = 0; + @JsonProperty("max") + int maxPage = 0; + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Query.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Query.java similarity index 80% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Query.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Query.java index 81ab609..c71b805 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Query.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Query.java @@ -1,20 +1,20 @@ -package com.kim.apidoc.example.common; - -import lombok.Getter; -import lombok.Setter; - -@Setter -@Getter -public class Query { - - /** - * static will be ignore - */ - public static final String CONSTANS = ""; - - /** - * 查询关键字 - */ - String q = "123"; - -} +package com.github.fengyuchenglun.example.common; + +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class Query { + + /** + * static will be ignore + */ + public static final String CONSTANS = ""; + + /** + * 查询关键字 + */ + String q = "123"; + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/ResultData.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/ResultData.java similarity index 90% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/ResultData.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/ResultData.java index bfeb26b..ff9d0bc 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/ResultData.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/ResultData.java @@ -1,57 +1,57 @@ -package com.kim.apidoc.example.common; - -import lombok.Getter; -import lombok.Setter; - -/** - * The type Result data. - * - * @param the type parameter - * @author fengyuchenglun - * @version 1.0.0 - * @resultData - */ -@Setter -@Getter -public class ResultData { - - /** - * 返回码 - */ - int code; - /** - * The Msg. - */ -//返回信息 - String msg; - /** - * The Data. - */ - T data; - - /** - * Ok result data. - * - * @param the type parameter - * @return the result data - */ - public static ResultData ok(){ - return ok(null); - } - - /** - * Ok result data. - * - * @param the type parameter - * @param data the data - * @return the result data - */ - public static ResultData ok(T data){ - ResultData resultData = new ResultData<>(); - resultData.code = 0; - resultData.msg = "ok"; - resultData.data = data; - return resultData; - } - -} +package com.github.fengyuchenglun.example.common; + +import lombok.Getter; +import lombok.Setter; + +/** + * The type Result data. + * + * @param the type parameter + * @author fengyuchenglun + * @version 1.0.0 + * @resultData + */ +@Setter +@Getter +public class ResultData { + + /** + * 返回码 + */ + int code; + /** + * The Msg. + */ +//返回信息 + String msg; + /** + * The Data. + */ + T data; + + /** + * Ok result data. + * + * @param the type parameter + * @return the result data + */ + public static ResultData ok(){ + return ok(null); + } + + /** + * Ok result data. + * + * @param the type parameter + * @param data the data + * @return the result data + */ + public static ResultData ok(T data){ + ResultData resultData = new ResultData<>(); + resultData.code = 0; + resultData.msg = "ok"; + resultData.data = data; + return resultData; + } + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Role.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Role.java similarity index 84% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Role.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Role.java index 22b450e..6832940 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Role.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Role.java @@ -1,36 +1,36 @@ -package com.kim.apidoc.example.common; - -/** - * 用户角色 - * - * @code - */ -public enum Role { - - /** - * Admin role. - */ - ADMIN("管理员"), - /** - * User role. - */ - USER("用户"), - /** - * Vip role. - */ - VIP("会员"); - - /** - * The Text. - */ - String text; - - /** - * Instantiates a new Role. - * - * @param text the text - */ - Role(String text) { - this.text = text; - } -} +package com.github.fengyuchenglun.example.common; + +/** + * 用户角色 + * + * @code + */ +public enum Role { + + /** + * Admin role. + */ + ADMIN("管理员"), + /** + * User role. + */ + USER("用户"), + /** + * Vip role. + */ + VIP("会员"); + + /** + * The Text. + */ + String text; + + /** + * Instantiates a new Role. + * + * @param text the text + */ + Role(String text) { + this.text = text; + } +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/StaticFinalCode.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/StaticFinalCode.java similarity index 77% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/StaticFinalCode.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/StaticFinalCode.java index 38c34d4..b6849c7 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/StaticFinalCode.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/StaticFinalCode.java @@ -1,17 +1,17 @@ -package com.kim.apidoc.example.common; - -/** - * @code - */ -public class StaticFinalCode { - - /** - * 成功 - */ - public static final int SUCCESS = 1; - /** - * 失败 - */ - public static final int ERROR = -1; - -} +package com.github.fengyuchenglun.example.common; + +/** + * @code + */ +public class StaticFinalCode { + + /** + * 成功 + */ + public static final int SUCCESS = 1; + /** + * 失败 + */ + public static final int ERROR = -1; + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/User.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/User.java similarity index 89% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/User.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/User.java index 9724a8f..7565d08 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/User.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/User.java @@ -1,48 +1,48 @@ -package com.kim.apidoc.example.common; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Getter; -import lombok.Setter; - -import javax.validation.constraints.Min; -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; -import java.util.Date; - -/** - * 用户对象 - * - * @author fengyuchenglun - * @version 1.0.0 - */ -@Setter -@Getter -public class User { - - /** - * 用户编号. - */ - int id; - /** - * 用户名称. - */ - @NotBlank - String name; - /** - * 用户年龄. - */ - @Min(1) - @NotNull - Integer age; - /** - * 创建时间. - */ - Date createAt; - /** - * 性别. - */ - @NotBlank - @JsonProperty("Sex") - String sex; - -} +package com.github.fengyuchenglun.example.common; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.util.Date; + +/** + * 用户对象 + * + * @author fengyuchenglun + * @version 1.0.0 + */ +@Setter +@Getter +public class User { + + /** + * 用户编号. + */ + int id; + /** + * 用户名称. + */ + @NotBlank + String name; + /** + * 用户年龄. + */ + @Min(1) + @NotNull + Integer age; + /** + * 创建时间. + */ + Date createAt; + /** + * 性别. + */ + @NotBlank + @JsonProperty("Sex") + String sex; + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserDTO.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserDTO.java similarity index 89% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserDTO.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserDTO.java index cf56289..3e7c24a 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserDTO.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserDTO.java @@ -1,49 +1,49 @@ -package com.kim.apidoc.example.common; - -import lombok.Getter; -import lombok.Setter; - -import javax.validation.constraints.Min; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import java.util.Date; -import java.util.List; -import java.util.Map; - -@Setter -@Getter -public class UserDTO { - - /** - * 编号 - */ - Integer id; - /*姓名*/ - @Size(min = 5, max = 20) - @NotEmpty - String name; - //年龄 - @Min(1) - int age; - /** - * 生日,还是推荐使用javadoc - */ - @NotNull - Date birthday; - /** - * 用户标签 - */ - @Size(min = 1, max = 2) - List tags; - - List data; - /** - * 用户图标 - */ - String[] icons; - - Map attrs; - - -} +package com.github.fengyuchenglun.example.common; + +import lombok.Getter; +import lombok.Setter; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.Date; +import java.util.List; +import java.util.Map; + +@Setter +@Getter +public class UserDTO { + + /** + * 编号 + */ + Integer id; + /*姓名*/ + @Size(min = 5, max = 20) + @NotEmpty + String name; + //年龄 + @Min(1) + int age; + /** + * 生日,还是推荐使用javadoc + */ + @NotNull + Date birthday; + /** + * 用户标签 + */ + @Size(min = 1, max = 2) + List tags; + + List data; + /** + * 用户图标 + */ + String[] icons; + + Map attrs; + + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserDetails.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserDetails.java similarity index 77% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserDetails.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserDetails.java index fdc15d3..4b238ea 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserDetails.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserDetails.java @@ -1,8 +1,8 @@ -package com.kim.apidoc.example.common; - -/** - * 某些用户信息框架,如spring security的用户登录信息 - * 此处只是模拟,真实的将调用security中的类 - */ -public class UserDetails { -} +package com.github.fengyuchenglun.example.common; + +/** + * 某些用户信息框架,如spring security的用户登录信息 + * 此处只是模拟,真实的将调用security中的类 + */ +public class UserDetails { +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserQuery.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserQuery.java similarity index 75% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserQuery.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserQuery.java index 401ad9d..3c96d05 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/UserQuery.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/UserQuery.java @@ -1,16 +1,16 @@ -package com.kim.apidoc.example.common; - -import lombok.Getter; -import lombok.Setter; - -@Setter -@Getter -public class UserQuery extends Page { - - /** - * 名称 - * @value apigcc - */ - String name; - -} +package com.github.fengyuchenglun.example.common; + +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class UserQuery extends Page { + + /** + * 名称 + * @value apigcc + */ + String name; + +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Wrapper.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Wrapper.java similarity index 70% rename from apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Wrapper.java rename to apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Wrapper.java index f612740..4b4d96d 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/common/Wrapper.java +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/common/Wrapper.java @@ -1,14 +1,14 @@ -package com.kim.apidoc.example.common; - -import lombok.Getter; -import lombok.Setter; - -@Setter -@Getter -public class Wrapper { - - String wrapper; - - T data; - -} +package com.github.fengyuchenglun.example.common; + +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class Wrapper { + + String wrapper; + + T data; + +} diff --git a/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/spring/advanced/UserController.java b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/spring/advanced/UserController.java new file mode 100644 index 0000000..ab2765b --- /dev/null +++ b/apidoc-springmvc/src/test/java/com/github/fengyuchenglun/example/spring/advanced/UserController.java @@ -0,0 +1,95 @@ +package com.github.fengyuchenglun.example.spring.advanced; + +import com.github.fengyuchenglun.example.annotation.KimController; +import com.github.fengyuchenglun.example.common.Query; +import com.github.fengyuchenglun.example.common.User; +import lombok.Data; +import org.springframework.web.bind.annotation.*; + +import java.io.Serializable; + +/** + * 用户接口. + * + * @author duanledexianxianxian + * @version 1.0.0 + * @date 2020 /3/25 1:00 + * @index 20 + * @since 1.0.0 + */ +@KimController +@RequestMapping("/api/v1/users") +public class UserController { + + + /** + * 查看用户详情 + * + * @param userId 用户编号 + * @param query 过滤条件 + * @return 用户对象 user + */ + @GetMapping(value = "/{userId}") + public User detail(@PathVariable String userId, Query query) { + User user = new User(); + return user; + } + + /** + * 查看用户详情 + * + * @param query 过滤条件 + * @return 用户对象 user + */ + @GetMapping(value = "/detail1") + public User detail1( Query query) { + User user = new User(); + return user; + } + + /** + * 查看用户详情 + * + * @param query 过滤条件 + * @return 用户对象 user + */ + @GetMapping(value = "/detail3") + public User detail3(@RequestParam Query query) { + User user = new User(); + return user; + } + + /** + * 用户表单对象. + * + * @author duanledexianxianxian + */ + @Data + public static class UserForm implements Serializable { + + private static final long serialVersionUID = 5681371348688016281L; + /** + * 用户名 + */ + private String userName; + /** + * 地址 + */ + private String address; + /** + * 年龄 + */ + private Integer age; + } + + /** + * 添加用户 + * + * @param form 用户表单对象 + * @return integer integer + */ + @PostMapping + public Integer add(@RequestBody UserForm form) { + return null; + } +} diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/UserController.java b/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/UserController.java deleted file mode 100644 index d7d4c68..0000000 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/UserController.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.kim.apidoc.example.spring.advanced; - -import com.kim.apidoc.example.annotation.KimController; -import com.kim.apidoc.example.common.Query; -import com.kim.apidoc.example.common.User; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; - -/** - * The type Kim user controller. - * - * @author duanledexianxianxian - * @version 1.0.0 - * @date 2020 /3/25 1:00 - * @index 20 - * @since 1.0.0 - */ -@KimController -@RequestMapping("/api/v1") -public class UserController { - - - /** - * 查看用户详情 - * - * @param userId 用户编号 - * @param query 过滤条件 - * @return 用户对象 user - */ - @GetMapping(value = "/{userId}") - public User detail(@PathVariable String userId, Query query) { - User user = new User(); - return user; - } - - - /** - * Add integer. - * - * @return integer integer - */ - @PostMapping - public Integer add() { - return null; - } -} diff --git a/build.gradle b/build.gradle index f3d4228..4857fc6 100644 --- a/build.gradle +++ b/build.gradle @@ -4,8 +4,8 @@ allprojects { apply plugin: 'maven' apply plugin: 'com.novoda.bintray-release' - group 'com.apidoc' - version '1.7.0' + group 'com.github.fengyuchenglun' + version '1.0.0' sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -28,8 +28,8 @@ allprojects { ext { DESCRIPTION = 'A rest document generator with parse the source code.' - SITE_URL = 'https://github.com/apigcc/apigcc' - GIT_URL = 'https://github.com/apigcc/apigcc.git' + SITE_URL = 'http://platform.kuopu.net:9999/gitlab/duanledexianxianxian/apidoc' + GIT_URL = 'http://platform.kuopu.net:9999/gitlab/duanledexianxianxian/apidoc.git' LICENSE = 'MIT License' -- GitLab