init
This commit is contained in:
@@ -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 };
|
||||
Reference in New Issue
Block a user