import { requestClient } from '#/api/request';

const prefix = 'doctor-input/';

export async function createDoctorInput(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}create`, data);
}

export async function getDoctorInputList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

export async function getDoctorInputDetail(id: number) {
  return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}

export async function updateDoctorInput(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}update`, data);
}

export async function auditDoctorInput(data: {
  id: number;
  status: number;
  audit_remark?: string;
}) {
  return requestClient.post<any>(`${prefix}audit`, data);
}
