/**
 * 微服务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
     */
    request(method: Method, contentType: ContentType, headers: object, parameters: any): Promise<any>

}


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

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