15 lines
546 B
Python
15 lines
546 B
Python
from services.clinicServices import ClinicServices
|
|
from services.clinicDoctorsServices import ClinicDoctorsServices
|
|
|
|
|
|
class AgentServices:
|
|
def __init__(self):
|
|
self.clinicServices = ClinicServices()
|
|
self.clinicDoctorService = ClinicDoctorsServices()
|
|
|
|
async def get_clinic_by_phone(self, phone: str):
|
|
return await self.clinicServices.get_clinic_by_phone(phone)
|
|
|
|
|
|
async def get_clinic_doctors_with_appointments(self, clinic_id: int):
|
|
return await self.clinicDoctorService.get_clinic_doctors(clinic_id) |