UNPKG

coa-wx-isv

Version:

一个轻量的微信SDK服务商版 for Node.js

15 lines (14 loc) 1.14 kB
/// <reference types="node" /> import { WxIsvBin } from '../libs/WxIsvBin'; import { WxIsv } from '../typings'; export declare class WxIsvServiceBase { protected readonly bin: WxIsvBin; protected readonly config: WxIsv.WxIsvConfig; protected readonly customErrorMessage: WxIsv.customErrorMessage; constructor(bin: WxIsvBin); request(method: WxIsv.AxiosMethod, url: string, data: Record<string, any>, params: Record<string, any>, ignoreError?: WxIsv.IgnoreError): Promise<any>; requestStream(method: WxIsv.AxiosMethod, url: string, data: Record<string, any>, params: Record<string, any>, ignoreError?: WxIsv.IgnoreError): Promise<any>; requestTransformResponse(method: WxIsv.AxiosMethod, url: string, data: Record<string, any>, params: Record<string, any>, transformResponseFunction: WxIsv.AxiosTransformer, ignoreError?: WxIsv.IgnoreError): Promise<any>; requestBuffer(method: WxIsv.AxiosMethod, url: string, buffer: Buffer, headers?: Record<string, string>, params?: Record<string, any>, ignoreError?: WxIsv.IgnoreError): Promise<any>; protected customErrorHandler(res: WxIsv.AxiosResponse): void; }