2026-05-04-04-12-34 优化项目库导入和三维交互

This commit is contained in:
2026-05-04 04:20:30 +08:00
parent 26d3109f63
commit 4aad0f815d
8 changed files with 632 additions and 105 deletions

View File

@@ -46,8 +46,12 @@ export const api = {
method: 'PATCH',
body: JSON.stringify({ name }),
}),
getDicomPreview: (projectId: string, slice: number) =>
request<DicomPreview>(`/api/projects/${projectId}/dicom-preview?slice=${slice}`),
deleteProject: (projectId: string) =>
request<{ ok: boolean; deletedId: string }>(`/api/projects/${projectId}`, {
method: 'DELETE',
}),
getDicomPreview: (projectId: string, slice: number, plane: DicomPreview['plane'] = 'axial') =>
request<DicomPreview>(`/api/projects/${projectId}/dicom-preview?slice=${slice}&plane=${plane}`),
getUsers: () => request<UserRecord[]>('/api/users'),
resetDemo: () =>
request<{ ok: boolean; projects: Project[]; users: UserRecord[] }>('/api/demo/reset', {