Files
NTO-2025-Backend-TeamTask/src/main/java/com/example/nto/service/BookingService.java
2025-11-29 19:38:16 +03:00

20 lines
619 B
Java

package com.example.nto.service;
import com.example.nto.entity.Booking;
import com.example.nto.entity.Employee;
import com.example.nto.entity.Place;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
public interface BookingService {
List<Booking> getBookingsByEmployee(Employee employee);
List<Booking> getBookingsByDate(LocalDate date);
Optional<Booking> getBookingByDateAndPlace(LocalDate date, Place place);
Optional<Booking> getBookingByEmployeeAndDate(Employee employee, LocalDate date);
Booking createBooking(Employee employee, Place place, LocalDate date);
}