2024-09-10 05:18:56 +00:00
|
|
|
|
2022-05-23 05:05:59 +00:00
|
|
|
export declare const FileApiDefinition: {
|
|
|
|
/**
|
|
|
|
* 上传文件
|
|
|
|
*/
|
|
|
|
upload: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "post";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "upload";
|
|
|
|
client: () => string;
|
|
|
|
};
|
2022-06-04 19:14:47 +00:00
|
|
|
/**
|
2022-06-23 09:55:22 +00:00
|
|
|
* 初始分块上传
|
2022-06-04 19:14:47 +00:00
|
|
|
*/
|
|
|
|
initChunk: {
|
|
|
|
method: "post";
|
|
|
|
server: "upload/initChunk";
|
|
|
|
client: () => string;
|
|
|
|
};
|
2022-06-04 09:01:33 +00:00
|
|
|
/**
|
|
|
|
* 上传分块文件
|
|
|
|
*/
|
|
|
|
uploadChunk: {
|
|
|
|
method: "post";
|
|
|
|
server: "upload/chunk";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 上传分块文件
|
|
|
|
*/
|
|
|
|
mergeChunk: {
|
|
|
|
method: "post";
|
|
|
|
server: "merge/chunk";
|
|
|
|
client: () => string;
|
|
|
|
};
|
2024-09-10 05:18:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 后端签名生成需要上传的文件
|
|
|
|
*/
|
|
|
|
ossSign:{
|
|
|
|
method: "post";
|
|
|
|
server: "upload/ossSign";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 后端签名上传分片
|
|
|
|
*/
|
|
|
|
ossChunk:{
|
|
|
|
method: "post";
|
|
|
|
server: "upload/ossChunk";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 后端签名上传结束
|
|
|
|
*/
|
|
|
|
ossMerge:{
|
|
|
|
method: "post";
|
|
|
|
server: "upload/ossMerge";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
|
2022-05-23 05:05:59 +00:00
|
|
|
};
|
2022-06-04 09:01:33 +00:00
|
|
|
export declare const FILE_CHUNK_SIZE: number;
|