1 | package com.example.rezevirajmasa.demo.service;
|
---|
2 |
|
---|
3 | import com.example.rezevirajmasa.demo.dto.RestaurantDTO;
|
---|
4 | import com.example.rezevirajmasa.demo.model.Restaurant;
|
---|
5 | import com.example.rezevirajmasa.demo.model.TableEntity;
|
---|
6 |
|
---|
7 | import java.math.BigDecimal;
|
---|
8 | import java.time.LocalDate;
|
---|
9 | import java.time.LocalDateTime;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | public interface RestaurantService {
|
---|
13 | List<RestaurantDTO> listall();
|
---|
14 | List<Restaurant> listAll();
|
---|
15 | // void save(String name, String cuisineType, String address, String phone, String operatingHours, String website, String socialMediaLinks, BigDecimal rating, List<Long> tablesList);
|
---|
16 | // void save(String name, String cuisineType, String address, String phone, String operatingHours, String website, String socialMediaLinks, BigDecimal rating, int numberOfTables, int tableCapacity, String location, Boolean isSmokingArea, String description);
|
---|
17 | void save(Restaurant restaurant, int numberOfTables, List<Integer> tableCapacities, List<String> tableLocations, List<String> tableSmokingAreas, List<String> tableDescriptions);
|
---|
18 | Restaurant updateRestaurant(Long restaurantId, String name, String cuisineType, String address, String phone, String operatingHours, String website, String socialMediaLinks, BigDecimal rating, List<Long> tablesList);
|
---|
19 | Restaurant deleteRestaurant(Long restaurantId);
|
---|
20 | RestaurantDTO findById(Long restaurantId);
|
---|
21 | Restaurant findByIdRestaurant(Long restaurantId);
|
---|
22 | List<Restaurant> listRestaurantBy(String search);
|
---|
23 | List<Restaurant> getRestaurantsWithAvailableTimeSlotsForToday();
|
---|
24 | public List<Restaurant> findRestaurantsByDateTimeAndPartySize(LocalDateTime dateTime, int partySize, String search);
|
---|
25 | // public List<Restaurant> findRestaurantsBySearchParams(LocalDateTime dateTime, int partySize, String search);
|
---|
26 | public List<String> findALlCuisineTypes();
|
---|
27 | List<RestaurantDTO> findRestaurantsByCuisineType(String param);
|
---|
28 | public List<RestaurantDTO> findRestaurantsBySearchParams(LocalDateTime dateTime, int partySize, String search);
|
---|
29 | }
|
---|