student-30864-patch-1 #11

Closed
student-30864 wants to merge 19 commits from student-30864/NTO-2025-Backend-TeamTask-1:student-30864-patch-1 into main
Showing only changes of commit 2b83847947 - Show all commits

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);
} }