mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
Update file.ts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user