This commit is contained in:
xuziqiang
2024-05-15 17:29:42 +08:00
commit d0155dbe3c
7296 changed files with 1832517 additions and 0 deletions

21
lib/util/http/axios.d.ts vendored Normal file
View 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;
}