package com.example.medweb.service; import com.example.medweb.model.Termin; import com.example.medweb.model.TerminId; import java.time.ZonedDateTime; import java.util.List; import java.util.Optional; public interface TerminService { Optional findTerminById(TerminId terminId); List findTerminByTermin_id(Integer termin_id); Termin findOneTerminByTerminId (Integer termin_id); void save (Termin termin); void deleteTermin (Termin termin); List findOnlyFutureAndFree (ZonedDateTime now); List findOnlyFutureAndFreeAndByDoktor (ZonedDateTime now, Integer doktor_id); }