
com.gitee.easyopen.support.SopDocController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyopen Show documentation
Show all versions of easyopen Show documentation
一个简单易用的接口开放平台,平台封装了常用的参数校验、结果返回等功能,开发者只需实现业务代码即可。https://gitee.com/durcframework/easyopen
The newest version!
package com.gitee.easyopen.support;
import com.gitee.easyopen.doc.ApiDocHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.HashMap;
import java.util.Map;
/**
* @author tanghc
*/
public abstract class SopDocController {
public abstract String getDocTitle();
@RequestMapping("/v2/api-docs")
public Map getDocInfo() {
Map context = this.getContext();
context.put("easyopen", "1.16.3");
context.put("apiModules", ApiDocHolder.getApiDocBuilder().getApiModules());
context.put("title", getDocTitle());
return context;
}
public Map getContext() {
return new HashMap<>(8);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy