[d24f17c] | 1 | package com.example.rezevirajmasa.demo.service;
|
---|
| 2 |
|
---|
[deea3c4] | 3 | import com.example.rezevirajmasa.demo.dto.TableDTO;
|
---|
[d24f17c] | 4 | import com.example.rezevirajmasa.demo.model.Restaurant;
|
---|
| 5 | import com.example.rezevirajmasa.demo.model.TableEntity;
|
---|
| 6 | import jakarta.persistence.Table;
|
---|
| 7 |
|
---|
| 8 | import java.time.LocalDate;
|
---|
| 9 | import java.time.LocalDateTime;
|
---|
| 10 | import java.time.LocalTime;
|
---|
| 11 | import java.util.List;
|
---|
| 12 |
|
---|
| 13 | public interface TableService {
|
---|
| 14 | List<TableEntity> listall();
|
---|
[deea3c4] | 15 | TableDTO findById(Long id);
|
---|
| 16 | TableEntity findByIdTable(Long id);
|
---|
| 17 | void save(int numberOfTables, List<Integer> tableCapacities, List<String> tableLocations, List<String> tableSmokingAreas, List<String> tableDescriptions, Restaurant restaurant);
|
---|
[d24f17c] | 18 | void deleteTimeSlotsForReservation(Long tableId, LocalDateTime reservationTime);
|
---|
| 19 | void canceledTimeSlots(Long tableId, LocalDateTime reservationTime);
|
---|
| 20 | TableEntity getTableByNumber(Long number);
|
---|
| 21 | TableEntity deleteTable(Long number);
|
---|
| 22 | void saveTable(TableEntity table);
|
---|
| 23 | boolean hasAvailableTimeSlotsForRestaurantAndDate(Restaurant restaurant, LocalDate today);
|
---|
| 24 | public boolean hasAvailableTimeSlotsForTableAndDate(TableEntity table, LocalDate date);
|
---|
| 25 | }
|
---|