Update src/main/java/com/example/nto/service/BookingService.java

This commit is contained in:
2025-12-08 12:05:57 +00:00
parent b513cfb282
commit 2b83847947

View File

@@ -1,10 +1,22 @@
package com.example.nto.service; package com.example.nto.service;
/** import com.example.nto.entity.Booking;
* TODO: ДОРАБОТАТЬ в рамках задания import com.example.nto.entity.Employee;
* ================================= import com.example.nto.entity.Place;
* МОЖНО: Добавлять методы, аннотации, зависимости
* НЕЛЬЗЯ: Изменять название класса и пакета import java.time.LocalDate;
*/ import java.util.List;
import java.util.Map;
public interface BookingService { public interface BookingService {
Map<LocalDate, Booking> getBookingsByEmployee(Employee employee);
Map<LocalDate, List<Place>> getAvailablePlaces();
boolean existsBookingForEmployeeOnDate(Employee employee, LocalDate date);
boolean isPlaceBookedOnDate(Place place, LocalDate date);
Booking createBooking(Employee employee, LocalDate date, Place place);
} }