Changeset b738035 for trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/PlannerServiceImpl.java
- Timestamp:
- 01/24/22 21:08:32 (3 years ago)
- Branches:
- master
- Children:
- 76712b2
- Parents:
- bdd6491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/PlannerServiceImpl.java
rbdd6491 rb738035 5 5 import finki.diplomska.tripplanner.models.User; 6 6 import finki.diplomska.tripplanner.models.dto.PlannerDto; 7 import finki.diplomska.tripplanner.models.dto.PlannerLocationDto; 7 8 import finki.diplomska.tripplanner.models.exceptions.LocationNotFoundException; 8 9 import finki.diplomska.tripplanner.models.exceptions.PlannerNotFoundException; … … 11 12 import finki.diplomska.tripplanner.repository.jpa.JpaUserRepository; 12 13 import finki.diplomska.tripplanner.service.PlannerService; 14 import org.springframework.http.ResponseEntity; 13 15 import org.springframework.stereotype.Service; 14 16 … … 67 69 68 70 @Override 69 public void deleteLocationFromPlanner(Long locationId) { 70 this.plannerRepository.deleteLocationFromPlanner(locationId); 71 public ResponseEntity deleteLocationFromPlanner(PlannerLocationDto plannerLocationDto) { 72 plannerRepository.deleteLocationFromPlanner(plannerLocationDto.getPlannerId(), plannerLocationDto.getLocationId()); 73 return null; 71 74 } 72 75
Note:
See TracChangeset
for help on using the changeset viewer.