Closed atkaksoy501 closed 6 months ago
The recent updates focus on enhancing the data transfer objects (DTOs) across various controllers and services within the application. These changes include the introduction of new DTOs for doctors, hospitals, and retreats, alongside modifications to service interfaces and implementations to utilize these new response formats. The adjustments aim at refining the API responses by providing more detailed and structured data, particularly by incorporating associated entities like hospitals in doctor details and vice versa.
Files | Change Summary |
---|---|
.../controllers/DoctorsController.java .../controllers/HospitalsController.java .../controllers/RetreatsController.java |
Updated import statements and return types to utilize new DTOs. |
.../DTOs/responses/ (DoctorDTO, DoctorDTOWithHospital, GotHospitalByIdResponse, GotHospitalsByDepartmentIdResponse, GotRetreatByDepartmentIdResponse, DepartmentForHospitalDepartmentResponse, HospitalForDoctorResponse) |
Added new DTO classes for detailed API responses. |
.../abstracts/(IDoctorService.java, IHospitalService.java, IRetreatService.java) |
Updated return types in service interfaces to align with new DTOs. |
.../concretes/(DoctorService.java, HospitalService.java, RetreatService.java, AuthService.java) |
Modified services to implement new DTOs and added dependencies. |
.../dataAccess/HospitalDepartmentDao.java |
Added method for fetching hospitals by department ID. |
.../test/.../TestDataCreator.java |
Adjusted test data creation to align with new DTOs and service methods. |
π°β¨
Changes abound, the code does hop,
Through fields of data, without a stop.
New DTOs bloom, like flowers in spring,
Bringing structure and joy, to the data we bring.
πΌππ
With every update, our garden grows,
CodeRabbit watches, as the clean code flows.
π°π»π±
@coderabbitai review
Summary by CodeRabbit
New Features
Refactor
Documentation