fix(miniprogram): 预约详情/随访详情改为 API 获取数据,移除 Storage 缓存传递
This commit is contained in:
@@ -30,6 +30,10 @@ export async function listAppointments(page = 1) {
|
||||
return api.get<{ data: Appointment[]; total: number }>(`/health/appointments?page=${page}&page_size=20`);
|
||||
}
|
||||
|
||||
export async function getAppointment(id: string) {
|
||||
return api.get<Appointment>(`/health/appointments/${id}`);
|
||||
}
|
||||
|
||||
export async function createAppointment(data: {
|
||||
patient_id: string;
|
||||
doctor_id: string;
|
||||
|
||||
@@ -29,6 +29,10 @@ export async function listTasks(status?: string) {
|
||||
);
|
||||
}
|
||||
|
||||
export async function getTaskDetail(id: string) {
|
||||
return api.get<FollowUpTask>(`/health/follow-up-tasks/${id}`);
|
||||
}
|
||||
|
||||
export async function submitRecord(data: { task_id: string; content: FollowUpContent }) {
|
||||
return api.post<FollowUpRecord>('/health/follow-up-records', data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user