Step F7:数据管理
This commit is contained in:
@@ -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}`);
|
||||
Reference in New Issue
Block a user