27 lines
632 B
TypeScript
27 lines
632 B
TypeScript
import * as axios from "axios";
|
|
|
|
declare module "axios" {
|
|
// 定制业务相关的网络请求响应格式, T 是具体的接口返回类型数据
|
|
// export interface BschResponse<T> {
|
|
// code: number;
|
|
// msg?: string;
|
|
// data?: T;
|
|
// [keys: string]: any; //任意属性
|
|
// }
|
|
|
|
export interface BschResponse {
|
|
State: boolean;
|
|
Data: any;
|
|
Message: string;
|
|
OtherData: any;
|
|
Page: any;
|
|
[keys: string]: any; //任意属性
|
|
}
|
|
|
|
export interface BschResult {
|
|
url: string;
|
|
params?: object;
|
|
data?: object;
|
|
}
|
|
}
|