com.gitee.easyopen.doc.ApiServiceDocCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyopen-mini Show documentation
Show all versions of easyopen-mini Show documentation
easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen
package com.gitee.easyopen.doc;
import com.gitee.easyopen.annotation.Api;
import com.gitee.easyopen.annotation.ApiService;
import org.springframework.context.ApplicationContext;
/**
* @author tanghc
*/
public class ApiServiceDocCreator extends AbstractApiDocCreator {
public ApiServiceDocCreator(String defaultVersion, ApplicationContext applicationContext) {
super(defaultVersion, applicationContext);
}
@Override
protected Class getServiceAnnotationClass() {
return ApiService.class;
}
@Override
protected Class getMethodAnnotationClass() {
return Api.class;
}
@Override
protected com.gitee.easyopen.bean.Api getApi(Api api) {
return new com.gitee.easyopen.bean.Api(api.name(), api.version());
}
}