source: trip-planner/src/main/java/finki/diplomska/tripplanner/service/PlannerService.java

Last change on this file was b738035, checked in by Ema <ema_spirova@…>, 3 years ago

signup/login server errors on front and remove location from planner

  • Property mode set to 100644
File size: 1.0 KB
Line 
1package finki.diplomska.tripplanner.service;
2
3import finki.diplomska.tripplanner.models.Location;
4import finki.diplomska.tripplanner.models.Planner;
5import finki.diplomska.tripplanner.models.dto.PlannerDto;
6import finki.diplomska.tripplanner.models.dto.PlannerLocationDto;
7import org.springframework.http.ResponseEntity;
8
9import java.util.List;
10import java.util.Optional;
11
12public interface PlannerService {
13
14 Planner createPlannerWithRequestParams(String description, String name, List<Location> locationList);
15 Optional<Planner> editPlanner(Long id, PlannerDto plannerDto, String username);
16 List<Planner> getAllPlaners();
17 List<Planner> getPlannersByUser(String username);
18 Optional<Planner> findById(Long id);
19 Planner editPlannerWithRequestParams(Long id, String description, String name, List<Location> locationList);
20 Optional<Planner> newPlanner(PlannerDto plannerDto, String username);
21 void deletePlannerById(Long id);
22 ResponseEntity deleteLocationFromPlanner(PlannerLocationDto plannerLocationDto);
23}
Note: See TracBrowser for help on using the repository browser.