main
Last change
on this file since 8ca35dc was 8ca35dc, checked in by Aleksandar Panovski <apano77@…>, 4 months ago |
Done with stupid timeslots
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | package com.example.rezevirajmasa.demo.service;
|
---|
2 |
|
---|
3 | import com.example.rezevirajmasa.demo.model.*;
|
---|
4 | import org.springframework.security.core.userdetails.UserDetails;
|
---|
5 |
|
---|
6 | import java.time.LocalDateTime;
|
---|
7 | import java.util.List;
|
---|
8 |
|
---|
9 | public interface ReservationService {
|
---|
10 | public void makeReservation(User user, TableEntity table, Restaurant restaurant, LocalDateTime localDateTime, LocalDateTime checkInTime, int partySize, String specialRequests);
|
---|
11 | public Reservation makeReservationRest(Reservation reservation, User user);
|
---|
12 | public List<Reservation> listAll();
|
---|
13 | public Reservation findById(Long id);
|
---|
14 | public Reservation getReservationById(Long reservationId);
|
---|
15 | public boolean cancelReservation(Long reservationId);
|
---|
16 | public List<Reservation> findReservationByUser(User user);
|
---|
17 | public List<Reservation> findReservationsByUserPast(User user);
|
---|
18 | public List<Reservation> findReservationsByTableAndDateRange(TableEntity table, LocalDateTime startDateTime, LocalDateTime endDateTime);
|
---|
19 | List<Reservation> findReservationsToMove(LocalDateTime currentTime);
|
---|
20 | void deleteReservation(Long reservationID);
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.