feat: add meta info into workspace

This commit is contained in:
MingLiang Wang
2022-12-21 17:54:24 +08:00
parent 9280388c31
commit 95ad1fdcdc
7 changed files with 81 additions and 288 deletions
+2 -1
View File
@@ -190,10 +190,11 @@ export interface DownloadWOrkspaceParams {
}
export async function downloadWorkspace(
params: DownloadWOrkspaceParams
): Promise<Uint16Array> {
): Promise<ArrayBuffer> {
const data = await request({
url: `/api/workspace/${params.workspaceId}/doc`,
method: 'GET',
responseType: 'arraybuffer',
});
return data.data;