import { api } from './request' export async function getAppointments(params?: Record) { return api.get('/health/appointments', params) } export async function createAppointment(data: any) { return api.post('/health/appointments', data) } export async function getAppointment(id: string) { return api.get(`/health/appointments/${id}`) } export async function cancelAppointment(id: string, version: number) { return api.put(`/health/appointments/${id}/cancel`, { version }) } export async function getDoctors() { return api.get('/health/doctors') }