1 | package com.example.rezevirajmasa.demo.service;
|
---|
2 |
|
---|
3 | import com.example.rezevirajmasa.demo.model.Restaurant;
|
---|
4 |
|
---|
5 | import java.math.BigDecimal;
|
---|
6 | import java.time.LocalDate;
|
---|
7 | import java.util.List;
|
---|
8 |
|
---|
9 | public interface RestaurantService {
|
---|
10 | List<Restaurant> listall();
|
---|
11 | // void save(String name, String cuisineType, String address, String phone, String operatingHours, String website, String socialMediaLinks, BigDecimal rating, List<Long> tablesList);
|
---|
12 | // 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);
|
---|
13 | void save(Restaurant restaurant, int numberOfTables, List<Integer> tableCapacities, List<String> tableLocations, List<String> tableSmokingAreas, List<String> tableDescriptions);
|
---|
14 | Restaurant updateRestaurant(Long restaurantId, String name, String cuisineType, String address, String phone, String operatingHours, String website, String socialMediaLinks, BigDecimal rating, List<Long> tablesList);
|
---|
15 | Restaurant deleteRestaurant(Long restaurantId);
|
---|
16 |
|
---|
17 | Restaurant findById(Long restaurantId);
|
---|
18 | List<Restaurant> listRestaurantBy(String search);
|
---|
19 | List<Restaurant> getRestaurantsWithAvailableTimeSlotsForToday();
|
---|
20 | }
|
---|