diff --git a/packages/domains/src/api/file.ts b/packages/domains/src/api/file.ts index b5c16aec..0a419d78 100644 --- a/packages/domains/src/api/file.ts +++ b/packages/domains/src/api/file.ts @@ -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;