All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gitee.easyopen.doc.ApiServiceDocCreator Maven / Gradle / Ivy

Go to download

easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen

There is a newer version: 1.0.4
Show newest version
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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy