信息架构/菜单框架大重构-20260109

This commit is contained in:
Cheng Zhou
2026-01-09 11:19:04 +08:00
parent ba3cf95b8a
commit 9021c7fe2b
188 changed files with 7632 additions and 11658 deletions
+16
View File
@@ -0,0 +1,16 @@
import { apiDelete, apiGet, apiPatch, apiPost } from "./axios";
export const listDrugShipments = (studyId: string, params?: Record<string, any>) =>
apiGet(`/api/v1/studies/${studyId}/drug/shipments`, { params });
export const getDrugShipment = (studyId: string, shipmentId: string) =>
apiGet(`/api/v1/studies/${studyId}/drug/shipments/${shipmentId}`);
export const createDrugShipment = (studyId: string, payload: Record<string, any>) =>
apiPost(`/api/v1/studies/${studyId}/drug/shipments`, payload);
export const updateDrugShipment = (studyId: string, shipmentId: string, payload: Record<string, any>) =>
apiPatch(`/api/v1/studies/${studyId}/drug/shipments/${shipmentId}`, payload);
export const deleteDrugShipment = (studyId: string, shipmentId: string) =>
apiDelete(`/api/v1/studies/${studyId}/drug/shipments/${shipmentId}`);