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

一个简单易用的接口开放平台,平台封装了常用的参数校验、结果返回等功能,开发者只需实现业务代码即可。https://gitee.com/durcframework/easyopen

The 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 - 2025 Weber Informatics LLC | Privacy Policy