push
This commit is contained in:
21
lib/util/http/axios.d.ts
vendored
Normal file
21
lib/util/http/axios.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
export interface Result<T = any> {
|
||||
code: number;
|
||||
success: true | false;
|
||||
requestId: string;
|
||||
msg?: string;
|
||||
data: T;
|
||||
}
|
||||
|
||||
// multipart/form-data: upload file
|
||||
export interface UploadFileParams {
|
||||
// Other parameters
|
||||
data?: Recordable;
|
||||
// File parameter interface field name
|
||||
name?: string;
|
||||
// file name
|
||||
file: File | Blob;
|
||||
// file name
|
||||
filename?: string;
|
||||
|
||||
[key: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user