import {HttpClientHook} from "../HttpClientHook";
import {AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse} from "axios";

export class ServiceClientConfig {

    /**
     * 微服务请求超时时间
     */
    public requestTimeout: number = 8000;

    /**
     * 调用钩子函数
     */
    public httpClientHook?: HttpClientHook;

    /**
     * 配置Axios拦截器
     */
    public configAxiosInterceptors(request: AxiosInterceptorManager<AxiosRequestConfig>, response: AxiosInterceptorManager<AxiosResponse>) {

    }

}