fix(miniprogram): 预约详情/随访详情改为 API 获取数据,移除 Storage 缓存传递

This commit is contained in:
iven
2026-04-24 12:24:49 +08:00
parent 2dc280a401
commit f75bc191e6
4 changed files with 61 additions and 47 deletions

View File

@@ -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;

View File

@@ -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);
}