Step F7:数据管理

This commit is contained in:
Cheng Zhou
2025-12-16 22:48:05 +08:00
parent abb5b0a107
commit b029be200c
2 changed files with 141 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { apiGet, apiPost } from "./axios";
export const fetchVerifications = (studyId: string, params?: Record<string, any>) =>
apiGet(`/api/v1/studies/${studyId}/verifications/`, { params });
export const upsertVerification = (studyId: string, payload: Record<string, any>) =>
apiPost(`/api/v1/studies/${studyId}/verifications/`, payload);
export const fetchVerification = (studyId: string, subjectId: string, level: string) =>
apiGet(`/api/v1/studies/${studyId}/verifications/subjects/${subjectId}/${level}`);