feat: redesign retrieve workspace

This commit is contained in:
Lan
2026-06-03 03:27:16 +08:00
parent 7a9ad94a1a
commit 96a4e8537a
6 changed files with 626 additions and 60 deletions
+5
View File
@@ -10,6 +10,7 @@ import type {
FileInfo,
FileListResponse,
FileUploadResponse,
ShareMetadataResponse,
ShareSelectResponse,
TextSendResponse,
UploadProgress
@@ -100,6 +101,10 @@ export class FileService {
return api.post('/share/select/', { code })
}
static async inspectFile(code: string): Promise<ApiResponse<ShareMetadataResponse>> {
return api.post('/share/metadata/', { code })
}
static async getFile(code: string): Promise<ApiResponse<FileInfo>> {
return api.get(`/file/${code}`)
}