feat: redesign retrieve workspace
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user