import { api } from './request'; export interface ConsultationSession { id: string; patient_id: string; doctor_id: string | null; type: string; status: string; subject: string | null; last_message: string | null; last_message_at: string | null; unread_count: number; created_at: string; } export async function listConsultations(params?: { page?: number; page_size?: number; }) { return api.get<{ data: ConsultationSession[]; total: number }>( '/health/consultation-sessions', params, ); }