参与者管理- PD模块内容补充
This commit is contained in:
@@ -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}`);
|
||||
Reference in New Issue
Block a user