Update src/main/java/com/example/nto/service/BookingService.java
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user