参与者管理- PD模块内容补充

This commit is contained in:
Cheng Zhou
2026-02-28 14:33:57 +08:00
parent af0c1b4b7d
commit 9b36a42e6f
14 changed files with 855 additions and 35 deletions
+20
View File
@@ -0,0 +1,20 @@
import { apiDelete, apiGet, apiPatch, apiPost } from "./axios";
export const listStudySubjectPds = (studyId: string, params?: Record<string, any>) =>
apiGet(`/api/v1/studies/${studyId}/subject-pds`, { params });
export const listSubjectPds = (studyId: string, subjectId: string, params?: Record<string, any>) =>
apiGet(`/api/v1/studies/${studyId}/subjects/${subjectId}/pds`, { params });
export const createSubjectPd = (studyId: string, subjectId: string, payload: Record<string, any>) =>
apiPost(`/api/v1/studies/${studyId}/subjects/${subjectId}/pds`, payload);
export const updateSubjectPd = (
studyId: string,
subjectId: string,
pdId: string,
payload: Record<string, any>
) => apiPatch(`/api/v1/studies/${studyId}/subjects/${subjectId}/pds/${pdId}`, payload);
export const deleteSubjectPd = (studyId: string, subjectId: string, pdId: string) =>
apiDelete(`/api/v1/studies/${studyId}/subjects/${subjectId}/pds/${pdId}`);