Interface DoctorService
- All Known Implementing Classes:
DoctorServiceImpl
public interface DoctorService
Doctor service interface for managing doctor information.
- Version:
- 1.0
- Author:
- Mirna Gama
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new doctor to the repository.org.springframework.data.domain.Page<DoctorPublicDataDTO>findDoctors(org.springframework.data.domain.Pageable pageable) Retrieves a paginated sublist of doctors.
-
Method Details
-
addDoctor
Adds a new doctor to the repository.- Parameters:
doctorDTO- A data transfer object representing a doctor to add.- Returns:
- The saved doctor if successful, or null if there is an error.
-
findDoctors
org.springframework.data.domain.Page<DoctorPublicDataDTO> findDoctors(org.springframework.data.domain.Pageable pageable) Retrieves a paginated sublist of doctors.- Parameters:
pageable- Pagination information, such as size and page number- Returns:
- A paginated sublist containing data transfer objects with doctors public information in the repository
-