Update file.ts

This commit is contained in:
fantasticit
2025-02-10 22:42:12 +08:00
committed by GitHub
parent 7ebbdabd76
commit b4d8d7f979
+28 -1
View File
@@ -27,13 +27,40 @@ export const FileApiDefinition = {
},
/**
* 上传分块文件
* 合并分块文件
*/
mergeChunk: {
method: 'post' as const,
server: 'merge/chunk' as const,
client: () => '/file/merge/chunk',
},
/**
* OSS 签名
*/
ossSign: {
method: 'post' as const,
server: 'oss/sign' as const,
client: () => '/file/oss/sign',
},
/**
* OSS 分块上传
*/
ossChunk: {
method: 'post' as const,
server: 'oss/chunk' as const,
client: () => '/file/oss/chunk',
},
/**
* OSS 合并分块
*/
ossMerge: {
method: 'post' as const,
server: 'oss/merge' as const,
client: () => '/file/oss/merge',
},
};
export const FILE_CHUNK_SIZE = 2 * 1024 * 1024;