/**
 * 微服务HTTP请求接口
 */
export interface MsHttpClient {


    /**
     * 微服务请求
     *
     * @param method GET|DELETE|POST|PUT|PATCH
     * @param contentType multipart/form-data 类型时为文件上传
     * @param headers {pid:xxx,sid:xxx,versionNo:xxx}
     * @param parameters
     * @param ext 前端自定义扩展参数
     */
    request(method: Method, contentType: ContentType, headers: object, parameters: any ,ext?: any): Promise<any>

}


export type Method =
    'GET'
    | 'DELETE'
    | 'POST'
    | 'PUT'
    | 'PATCH'

export type ContentType =
    'application/x-www-form-urlencoded'
    | 'multipart/form-data'
    | 'application/json'
    | 'application/xml'
    | 'text/plain'
