Commit ca53f41f authored by duanledexianxianxian's avatar duanledexianxianxian 😁

代码重构

parent d1cdf8f4
package com.kim.apidoc.core; package com.github.fengyuchenglun.apidoc.core;
import com.kim.apidoc.core.common.helper.StringHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper;
import com.kim.apidoc.core.parser.ParserStrategy; import com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy;
import com.kim.apidoc.core.parser.VisitorParser; import com.github.fengyuchenglun.apidoc.core.parser.VisitorParser;
import com.kim.apidoc.core.render.ProjectRender; import com.github.fengyuchenglun.apidoc.core.render.ProjectRender;
import com.kim.apidoc.core.resolver.TypeResolvers; import com.github.fengyuchenglun.apidoc.core.resolver.TypeResolvers;
import com.kim.apidoc.core.schema.Project; import com.github.fengyuchenglun.apidoc.core.schema.Project;
import com.github.javaparser.ParseResult; import com.github.javaparser.ParseResult;
import com.github.javaparser.ParserConfiguration; import com.github.javaparser.ParserConfiguration;
import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.CompilationUnit;
......
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.Lists;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
import com.kim.apidoc.core.common.helper.FileHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper;
import com.kim.apidoc.core.render.MarkdownRender; import com.github.fengyuchenglun.apidoc.core.render.MarkdownRender;
import com.kim.apidoc.core.render.ProjectRender; import com.github.fengyuchenglun.apidoc.core.render.ProjectRender;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
...@@ -13,8 +14,6 @@ import java.nio.file.Paths; ...@@ -13,8 +14,6 @@ import java.nio.file.Paths;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import static com.kim.apidoc.core.common.Constants.MARKDOWN_TEMPLATE;
/** /**
* The type Context. * The type Context.
* *
...@@ -109,7 +108,7 @@ public class Context { ...@@ -109,7 +108,7 @@ public class Context {
* markdown模版文件路径 * markdown模版文件路径
*/ */
@Setter @Setter
private String markdownTemplate = MARKDOWN_TEMPLATE; private String markdownTemplate = Constants.MARKDOWN_TEMPLATE;
/** /**
* 自定义扩展参数 * 自定义扩展参数
......
package com.kim.apidoc.core.common; package com.github.fengyuchenglun.apidoc.core.common;
import com.google.common.base.Strings; import com.google.common.base.Strings;
......
package com.kim.apidoc.core.common; package com.github.fengyuchenglun.apidoc.core.common;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
......
package com.kim.apidoc.core.common; package com.github.fengyuchenglun.apidoc.core.common;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
......
package com.kim.apidoc.core.common; package com.github.fengyuchenglun.apidoc.core.common;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
......
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 com.google.common.collect.Lists;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.Getter; import lombok.Getter;
......
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.common.ObjectMappers;
import com.kim.apidoc.core.common.ObjectMappers; import com.github.fengyuchenglun.apidoc.core.schema.Row;
import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ArrayNode;
import java.util.ArrayList; import java.util.ArrayList;
......
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.common.ObjectMappers;
import com.kim.apidoc.core.common.ObjectMappers; import com.github.fengyuchenglun.apidoc.core.schema.Row;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import lombok.Getter; import lombok.Getter;
......
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.ResolvedPrimitiveType;
import com.github.javaparser.resolution.types.ResolvedReferenceType; import com.github.javaparser.resolution.types.ResolvedReferenceType;
......
package com.kim.apidoc.core.common.description; package com.github.fengyuchenglun.apidoc.core.common.description;
/** /**
* 字符串类型 * 字符串类型
......
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.ast.comments.Comment;
import com.github.javaparser.javadoc.Javadoc; import com.github.javaparser.javadoc.Javadoc;
import com.google.common.collect.Lists; 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.Getter;
import lombok.Setter; import lombok.Setter;
......
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; import java.util.Collection;
......
package com.kim.apidoc.core.common.diff; package com.github.fengyuchenglun.apidoc.core.common.diff;
import com.google.common.base.Charsets; import com.google.common.base.Charsets;
import lombok.Getter; import lombok.Getter;
......
package com.kim.apidoc.core.common.diff; package com.github.fengyuchenglun.apidoc.core.common.diff;
import java.awt.*; import java.awt.*;
import java.io.File; import java.io.File;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.io.UnsupportedEncodingException;
import java.net.URLDecoder; import java.net.URLDecoder;
......
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.expr.*;
import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations; import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations;
......
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.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.type.ClassOrInterfaceType; import com.github.javaparser.ast.type.ClassOrInterfaceType;
......
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.FieldDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.MethodDeclaration;
......
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.CompilationUnit;
import com.github.javaparser.ast.Node; import com.github.javaparser.ast.Node;
......
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.EnumConstantDeclaration;
import com.github.javaparser.ast.body.EnumDeclaration; import com.github.javaparser.ast.body.EnumDeclaration;
import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration; import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration;
import com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration; import com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration;
import com.kim.apidoc.core.schema.Cell;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
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.NodeList;
import com.github.javaparser.ast.expr.*; import com.github.javaparser.ast.expr.*;
......
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.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.body.VariableDeclarator; 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.ast.expr.Expression;
import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration; import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration;
import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration; import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration;
import com.kim.apidoc.core.schema.Cell;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.kim.apidoc.core.common.helper; package com.github.fengyuchenglun.apidoc.core.common.helper;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
......
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.FieldDeclaration;
import com.github.javaparser.ast.expr.AnnotationExpr; import com.github.javaparser.ast.expr.AnnotationExpr;
......
package com.kim.apidoc.core.common.helper; package com.github.fengyuchenglun.apidoc.core.common.helper;
import java.util.Optional; import java.util.Optional;
......
package com.kim.apidoc.core.common.helper; package com.github.fengyuchenglun.apidoc.core.common.helper;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
......
package com.kim.apidoc.core.common.helper; package com.github.fengyuchenglun.apidoc.core.common.helper;
import com.google.common.base.Strings; import com.google.common.base.Strings;
......
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.CompilationUnit;
import com.github.javaparser.ast.ImportDeclaration; import com.github.javaparser.ast.ImportDeclaration;
......
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.declarations.ResolvedTypeParameterDeclaration;
import com.github.javaparser.resolution.types.ResolvedReferenceType; import com.github.javaparser.resolution.types.ResolvedReferenceType;
......
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.FieldDeclaration;
import com.github.javaparser.ast.expr.AnnotationExpr; import com.github.javaparser.ast.expr.AnnotationExpr;
......
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.List;
import java.util.function.Consumer; import java.util.function.Consumer;
......
package com.kim.apidoc.core.common.markup.asciidoc; package com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc;
public enum AsciiDoc implements CharSequence { public enum AsciiDoc implements CharSequence {
EXTENSION(".adoc"), EXTENSION(".adoc"),
......
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.github.fengyuchenglun.apidoc.core.common.Assert;
import com.kim.apidoc.core.common.Assert; import com.github.fengyuchenglun.apidoc.core.common.markup.MarkupBuilder;
import com.google.common.base.Strings; import com.google.common.base.Strings;
import java.util.List; import java.util.List;
......
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 * https://en.wikipedia.org/wiki/Web_colors#HTML_color_names
......
package com.kim.apidoc.core.common.markup.markdown; package com.github.fengyuchenglun.apidoc.core.common.markup.markdown;
public enum Markdown implements CharSequence { public enum Markdown implements CharSequence {
EXTENSION(".md"), EXTENSION(".md"),
......
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.github.fengyuchenglun.apidoc.core.common.Assert;
import com.kim.apidoc.core.common.Assert; import com.github.fengyuchenglun.apidoc.core.common.markup.MarkupBuilder;
import com.google.common.base.Strings; import com.google.common.base.Strings;
import java.util.List; import java.util.List;
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
/** /**
* 对应postman定义的mode * 对应postman定义的mode
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter; import lombok.Getter;
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
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.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
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 com.kim.apidoc.core.schema.Method; import com.github.fengyuchenglun.apidoc.core.schema.Method;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
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.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.common.postman; package com.github.fengyuchenglun.apidoc.core.common.postman;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.parser; package com.github.fengyuchenglun.apidoc.core.parser;
import com.kim.apidoc.core.schema.Chapter; import com.github.fengyuchenglun.apidoc.core.schema.Chapter;
import com.kim.apidoc.core.schema.Section; import com.github.fengyuchenglun.apidoc.core.schema.Section;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.MethodDeclaration;
......
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.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.EnumDeclaration; import com.github.javaparser.ast.body.EnumDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.comments.JavadocComment; import com.github.javaparser.ast.comments.JavadocComment;
import com.github.javaparser.ast.visitor.VoidVisitorAdapter; import com.github.javaparser.ast.visitor.VoidVisitorAdapter;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.helper.OptionalHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.OptionalHelper;
import com.kim.apidoc.core.schema.*;
/** /**
......
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.google.common.collect.Lists;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.helper.FileHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper;
import com.kim.apidoc.core.common.helper.StringHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper;
import com.kim.apidoc.core.common.markup.MarkupBuilder; import com.github.fengyuchenglun.apidoc.core.common.markup.MarkupBuilder;
import com.kim.apidoc.core.common.markup.asciidoc.AsciiDoc; import com.github.fengyuchenglun.apidoc.core.common.markup.asciidoc.AsciiDoc;
import com.kim.apidoc.core.schema.*;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.asciidoctor.Asciidoctor; import org.asciidoctor.Asciidoctor;
import org.asciidoctor.AttributesBuilder; import org.asciidoctor.AttributesBuilder;
......
package com.kim.apidoc.core.render; package com.github.fengyuchenglun.apidoc.core.render;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.common.Constants;
import com.kim.apidoc.core.common.Constants; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.ObjectMappers; import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper;
import com.kim.apidoc.core.common.helper.FileHelper; import com.github.fengyuchenglun.apidoc.core.schema.Project;
import com.kim.apidoc.core.schema.Project;
import freemarker.template.Configuration; import freemarker.template.Configuration;
import freemarker.template.Template; import freemarker.template.Template;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter; import java.io.StringWriter;
import java.nio.file.Path; import java.nio.file.Path;
......
package com.kim.apidoc.core.render; package com.github.fengyuchenglun.apidoc.core.render;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.common.ObjectMappers;
import com.kim.apidoc.core.common.ObjectMappers; import com.github.fengyuchenglun.apidoc.core.common.postman.*;
import com.kim.apidoc.core.common.helper.FileHelper; import com.github.fengyuchenglun.apidoc.core.schema.*;
import com.kim.apidoc.core.common.postman.*; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.schema.*; import com.github.fengyuchenglun.apidoc.core.common.helper.FileHelper;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.nio.file.Path; import java.nio.file.Path;
......
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. * The interface Project render.
......
package com.kim.apidoc.core.resolver; package com.github.fengyuchenglun.apidoc.core.resolver;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.kim.apidoc.core.common.description.ArrayTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.ArrayTypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
public class ArrayTypeResolver implements TypeResolver { public class ArrayTypeResolver implements TypeResolver {
......
package com.kim.apidoc.core.resolver; package com.github.fengyuchenglun.apidoc.core.resolver;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.helper.TypeParameterHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.TypeParameterHelper;
import com.kim.apidoc.core.common.description.ArrayTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.ArrayTypeDescription;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
......
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.kim.apidoc.core.common.description.StringTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.StringTypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
......
package com.kim.apidoc.core.resolver; package com.github.fengyuchenglun.apidoc.core.resolver;
import com.kim.apidoc.core.common.description.StringTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.StringTypeDescription;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration; import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration;
import com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration; import com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
......
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.kim.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
......
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.declarations.ResolvedFieldDeclaration;
import com.github.javaparser.resolution.types.ResolvedReferenceType; import com.github.javaparser.resolution.types.ResolvedReferenceType;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserClassDeclaration; import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserClassDeclaration;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.description.ObjectTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.ObjectTypeDescription;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.kim.apidoc.core.common.helper.*;
import java.util.Optional; import java.util.Optional;
......
package com.kim.apidoc.core.resolver; package com.github.fengyuchenglun.apidoc.core.resolver;
import com.kim.apidoc.core.common.description.PrimitiveTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.PrimitiveTypeDescription;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
......
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.kim.apidoc.core.common.description.StringTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.StringTypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
......
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.kim.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
public class SystemObjectTypeResolver implements TypeResolver { public class SystemObjectTypeResolver implements TypeResolver {
......
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; import com.github.javaparser.ast.type.Type;
public interface TypeNameResolver { public interface TypeNameResolver {
......
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; import com.github.javaparser.resolution.types.ResolvedType;
public interface TypeResolver { public interface TypeResolver {
......
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.kim.apidoc.core.common.helper.TypeNameHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.TypeNameHelper;
import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription;
import com.github.javaparser.ast.type.Type; import com.github.javaparser.ast.type.Type;
import com.github.javaparser.resolution.UnsolvedSymbolException; import com.github.javaparser.resolution.UnsolvedSymbolException;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
......
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.body.BodyDeclaration;
import com.github.javaparser.ast.comments.JavadocComment; import com.github.javaparser.ast.comments.JavadocComment;
import com.github.javaparser.ast.nodeTypes.NodeWithSimpleName; import com.github.javaparser.ast.nodeTypes.NodeWithSimpleName;
import com.kim.apidoc.core.common.helper.EnumHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.EnumHelper;
import com.kim.apidoc.core.common.helper.FieldHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.FieldHelper;
import com.kim.apidoc.core.common.helper.FileHelper;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
......
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.ast.comments.Comment;
import com.github.javaparser.javadoc.Javadoc; import com.github.javaparser.javadoc.Javadoc;
import com.kim.apidoc.core.Context; import com.github.fengyuchenglun.apidoc.core.common.helper.CommentHelper;
import com.kim.apidoc.core.common.helper.CommentHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper;
import com.kim.apidoc.core.common.helper.StringHelper;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import lombok.Getter; import lombok.Getter;
......
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;
}
}
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import lombok.*; import lombok.*;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import com.kim.apidoc.core.common.ObjectMappers; import com.github.fengyuchenglun.apidoc.core.common.ObjectMappers;
import com.kim.apidoc.core.common.QueryStringBuilder; import com.github.fengyuchenglun.apidoc.core.common.QueryStringBuilder;
import com.kim.apidoc.core.common.helper.StringHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.StringHelper;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Getter; import lombok.Getter;
......
package com.kim.apidoc.core.schema; package com.github.fengyuchenglun.apidoc.core.schema;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.core.schema;
/**
* 请求参数枚举类型
*
* @author duanledexianxianxian
* @date 2020 /3/29 0:37
* @since 1.0.0
*/
public enum RequestParameterType {
/**
* 查询参数.
*/
QUERY,
/**
* 路径参数.
*/
PATH,
/**
* 请求参数体.
*/
BODY
}
[TOC] [TOC]
<#-- ---------- BEGIN 循环遍历book ----------> <#-- ---------- BEGIN 循环遍历book ---------->
<#if books??> <#if books??>
<#list books as bookKey,bookValue> <#list books as bookKey,bookValue>
......
package com.kim.apidoc.springmvc; package com.github.fengyuchenglun.apidoc.springmvc;
import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.body.Parameter;
......
package com.kim.apidoc.springmvc; package com.github.fengyuchenglun.apidoc.springmvc;
import com.kim.apidoc.core.common.URI; import com.github.fengyuchenglun.apidoc.core.common.URI;
import com.kim.apidoc.core.common.helper.AnnotationHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.AnnotationHelper;
import com.kim.apidoc.core.common.helper.ClassDeclarationHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.ClassDeclarationHelper;
import com.kim.apidoc.core.common.helper.ExpressionHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.ExpressionHelper;
import com.kim.apidoc.core.schema.Method; import com.github.fengyuchenglun.apidoc.core.schema.Method;
import com.github.javaparser.ast.Node; import com.github.javaparser.ast.Node;
import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
......
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 com.google.common.collect.Lists;
import lombok.Data; import lombok.Data;
......
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.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.body.Parameter;
import com.github.javaparser.ast.expr.AnnotationExpr; import com.github.javaparser.ast.expr.AnnotationExpr;
import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.ast.type.ClassOrInterfaceType; import com.github.javaparser.ast.type.ClassOrInterfaceType;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.URI; import com.github.fengyuchenglun.apidoc.core.common.URI;
import com.kim.apidoc.core.common.description.ObjectTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.ObjectTypeDescription;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.kim.apidoc.core.common.helper.*; import com.github.fengyuchenglun.apidoc.core.parser.ParserStrategy;
import com.kim.apidoc.core.parser.ParserStrategy; import com.github.fengyuchenglun.apidoc.core.schema.Chapter;
import com.kim.apidoc.core.schema.Chapter; import com.github.fengyuchenglun.apidoc.core.schema.Header;
import com.kim.apidoc.core.schema.Header; import com.github.fengyuchenglun.apidoc.core.schema.Row;
import com.kim.apidoc.core.schema.Row; import com.github.fengyuchenglun.apidoc.core.schema.Section;
import com.kim.apidoc.core.schema.Section; import com.github.fengyuchenglun.apidoc.springmvc.resovler.SpringComponentTypeResolver;
import com.kim.apidoc.springmvc.resovler.SpringComponentTypeResolver;
import java.util.List; import java.util.List;
import java.util.Optional; 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 { ...@@ -157,7 +160,7 @@ public class SpringParser implements ParserStrategy {
if (ParameterHelper.isPathVariable(parameter)) { if (ParameterHelper.isPathVariable(parameter)) {
section.getPathVariable().put(parameter.getNameAsString(), ""); section.getPathVariable().put(parameter.getNameAsString(), "");
Row row = new Row(); Row row = new Row();
row.setRequestParameterType(PATH.name()); row.setRequestParameterType(PATH.getMsg());
row.setKey(parameter.getNameAsString()); row.setKey(parameter.getNameAsString());
row.setType(parameter.getType().toString()); row.setType(parameter.getType().toString());
// 路径参数必填 // 路径参数必填
...@@ -236,7 +239,7 @@ public class SpringParser implements ParserStrategy { ...@@ -236,7 +239,7 @@ public class SpringParser implements ParserStrategy {
} else if (description.isObject()) { } else if (description.isObject()) {
section.setParameter(description.asObject().getValue()); section.setParameter(description.asObject().getValue());
} }
section.addRequestRows(description.rows(BODY.name())); section.addRequestRows(description.rows(BODY.getMsg()));
} }
break; break;
} }
...@@ -295,11 +298,11 @@ public class SpringParser implements ParserStrategy { ...@@ -295,11 +298,11 @@ public class SpringParser implements ParserStrategy {
} }
} }
section.setParameter(objectTypeDescription.getValue()); section.setParameter(objectTypeDescription.getValue());
section.addRequestRows(objectTypeDescription.rows(QUERY.name())); section.addRequestRows(objectTypeDescription.rows(QUERY.getMsg()));
} }
/** /**
* 解析方法返回参 * 解析方法返回参数
* *
* @param n the n * @param n the n
* @param chapter the chapter * @param chapter the chapter
......
package com.kim.apidoc.springmvc.resovler; package com.github.fengyuchenglun.apidoc.springmvc.resovler;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.common.description.TypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.TypeDescription;
import com.kim.apidoc.core.common.description.UnAvailableTypeDescription; import com.github.fengyuchenglun.apidoc.core.common.description.UnAvailableTypeDescription;
import com.kim.apidoc.core.common.helper.TypeParameterHelper; import com.github.fengyuchenglun.apidoc.core.common.helper.TypeParameterHelper;
import com.kim.apidoc.core.resolver.TypeNameResolver; import com.github.fengyuchenglun.apidoc.core.resolver.TypeNameResolver;
import com.kim.apidoc.core.resolver.TypeResolver; import com.github.fengyuchenglun.apidoc.core.resolver.TypeResolver;
import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.type.Type; import com.github.javaparser.ast.type.Type;
import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.resolution.types.ResolvedType;
......
com.github.fengyuchenglun.apidoc.springmvc.SpringParser
\ No newline at end of file
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.kim.apidoc.core.Context; import com.github.fengyuchenglun.apidoc.core.Context;
import com.kim.apidoc.core.common.diff.FileMatcher; import com.github.fengyuchenglun.apidoc.core.common.diff.FileMatcher;
import org.junit.Test; import org.junit.Test;
import java.io.IOException; import java.io.IOException;
...@@ -17,7 +17,7 @@ public class SpringTest { ...@@ -17,7 +17,7 @@ public class SpringTest {
Context context = new Context(); Context context = new Context();
context.setId("test"); context.setId("test");
context.setName("测试项目"); 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"); // context.setCss("https://darshandsoni.com/asciidoctor-skins/css/monospace.css");
ApiDoc apigcc = new ApiDoc(context); ApiDoc apigcc = new ApiDoc(context);
......
package com.kim.apidoc.example; package com.github.fengyuchenglun.example;
import com.kim.apidoc.core.ApiDoc; import com.github.fengyuchenglun.apidoc.core.ApiDoc;
import com.kim.apidoc.core.Context; import com.github.fengyuchenglun.apidoc.core.Context;
import org.junit.Test; import org.junit.Test;
import java.nio.file.Paths; import java.nio.file.Paths;
......
package com.kim.apidoc.example.annotation; package com.github.fengyuchenglun.example.annotation;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
......
package com.kim.apidoc.example.annotation; package com.github.fengyuchenglun.example.annotation;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
/** /**
* @code * @code
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
/** /**
* 用户角色 * 用户角色
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter; import lombok.Getter;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
package com.kim.apidoc.example.common; package com.github.fengyuchenglun.example.common;
/** /**
* 某些用户信息框架,如spring security的用户登录信息 * 某些用户信息框架,如spring security的用户登录信息
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment