1 | package finki.diplomska.tripplanner.service;
|
---|
2 |
|
---|
3 |
|
---|
4 | import finki.diplomska.tripplanner.models.Location;
|
---|
5 | import finki.diplomska.tripplanner.models.Planner;
|
---|
6 | import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
|
---|
7 | import org.springframework.data.repository.query.Param;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Optional;
|
---|
11 |
|
---|
12 |
|
---|
13 | public interface LocationService {
|
---|
14 | List<Location> findLocationsFromCity(String locName, String companion, List<String> categories);
|
---|
15 | List<Location> findLocationsFromCountry (String locName, String companion,String region, List<String> categories );
|
---|
16 | List<Location> findAll();
|
---|
17 | Location getById(Long id);
|
---|
18 | List<Location> scheduleLocations(String locName, String companion,String region, List<String> categories, int numberOfDays);
|
---|
19 | Optional<Location> findById(Long id);
|
---|
20 | List<Location> findLocationsFromCityForm(Long cityId, Long companionId, Long lengthOfStay, String categoryIds);
|
---|
21 | List<Location> findLocationsFromRegionForm(Long regionId, Long companionId, Long lengthOfStay, String categoryIds);
|
---|
22 | Location addLocationToPlanner(PlannerLocationDto plannerLocationDto);
|
---|
23 | List<Location> getAllLocationsForPlanner(Long plannerId);
|
---|
24 | List<Location> getWeekendGetaways();
|
---|
25 | List<Location> getVillages();
|
---|
26 | List<Long> getAllLocationIdsForPlanner(Long plannerId);
|
---|
27 | }
|
---|