/** * 通用响应对象 * Response * @author LL * @date 2022-01-18 下午 02:15 **/ export declare class Response { static CODE_OK: number; static CODE_FAILURE: number; code: number; msg: string; data: T; constructor(code: number, msg: string, data: T); static ok(msg?: string, data?: T): Response; static error(msg?: string, data?: T): Response; /** * 如果响应成功, 获取响应数据 * 否则 抛出异常 * @param {Response} res 目标响应对象 * @return {T} 响应数据 * @exception Error 如果响应为失败 */ static getData(res: Response): T; } //# sourceMappingURL=Response.d.ts.map