perf(web): ConsultationList/FollowUpTaskList 移除 N+1 nameCache

后端已内联 patient_name/doctor_name,前端移除逐条查询。
Session/FollowUpTask 接口添加 name 可选字段。
FollowUpTaskList 保留 assignee 的 getUser 查询(users 表未内联)。
This commit is contained in:
iven
2026-04-27 09:47:37 +08:00
parent c6856370c6
commit f934ca0eaf
4 changed files with 36 additions and 105 deletions

View File

@@ -6,6 +6,8 @@ export interface Session {
id: string;
patient_id: string;
doctor_id?: string;
patient_name?: string;
doctor_name?: string;
consultation_type: string;
status: string;
last_message_at?: string;

View File

@@ -6,6 +6,7 @@ export interface FollowUpTask {
id: string;
patient_id: string;
assigned_to?: string;
patient_name?: string;
follow_up_type: string;
planned_date: string;
status: string;