This commit is contained in:
2026-07-05 14:43:34 +08:00
commit 17a8027b20
277 changed files with 63794 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/// modules/appointment/dto.js
const toDto = (row) => ({
id: row.id,
hospitalId: row.hospital_id,
hospitalName: row.hospital_name,
departmentName: row.department_name,
doctorId: row.doctor_id,
doctorName: row.doctor_name,
patientName: row.patient_name,
patientAge: row.patient_age,
patientPhone: row.patient_phone,
date: row.date,
timeSlot: row.time_slot,
symptom: row.symptom,
status: row.status,
remark: row.remark,
createdAt: row.created_at,
updatedAt: row.updated_at
});
module.exports = { toDto };