
com.github.ydoc.core.kv.DocApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydoc-spring-boot-starter Show documentation
Show all versions of ydoc-spring-boot-starter Show documentation
YDoc一款低侵入性、简洁并同时支持SwaggerUi和YApi的文档生成器
The newest version!
package com.github.ydoc.core.kv;
import com.alibaba.fastjson.JSONObject;
import lombok.*;
import org.springframework.web.bind.annotation.RequestMethod;
import java.lang.reflect.Method;
import java.util.List;
/**
* json object 扩展类
*
* @author nobugboy
**/
@EqualsAndHashCode(callSuper = true)
@Data
public class DocApi extends JSONObject {
private transient Method method;
private transient RequestMethod methodName;
private transient String outPath;
private transient String tag;
private transient List headers;
// 全局唯一即可
public static final DocApi DOC_API = new DocApi();
public DocApi update(Method method, String outPath, String tag) {
DOC_API.setMethod(method);
DOC_API.setOutPath(outPath);
DOC_API.setTag(tag);
return DOC_API;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy