perf(web): ConsultationList/FollowUpTaskList 移除 N+1 nameCache
后端已内联 patient_name/doctor_name,前端移除逐条查询。 Session/FollowUpTask 接口添加 name 可选字段。 FollowUpTaskList 保留 assignee 的 getUser 查询(users 表未内联)。
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user