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

com.github.longhaoteng.core.api.ApiHandler Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package com.github.longhaoteng.core.api;

import com.github.longhaoteng.core.common.AccessToken;
import com.github.longhaoteng.core.exception.ApiException;

import java.util.Map;

/**
 * api handler
 *
 * @author mr.long
 */
public interface ApiHandler {

    /**
     * api请求
     *
     * @param request     请求参数
     * @param response    响应
     * @param resp        响应参数
     * @param accessToken token
     * @throws ApiException api exception
     */
    void handle(Request request, Response response, Map resp, AccessToken accessToken) throws ApiException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy