-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/update travel hellomatia
- Loading branch information
Showing
11 changed files
with
170 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/java/com/mlog/travel/dto/UpdateTravelRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.mlog.travel.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
import static org.springframework.beans.BeanUtils.copyProperties; | ||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
public class UpdateTravelRequest { | ||
private String title; | ||
private String description; | ||
private String image; | ||
private String lat; | ||
private String lng; | ||
private LocalDateTime startDate; | ||
private LocalDateTime endDate; | ||
private Double rating; | ||
private List<DetailedScheduleDTO> detailedSchedules; | ||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
public static class DetailedScheduleDTO { | ||
private Integer seq; | ||
private String title; | ||
private String description; | ||
private List<String> images; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package com.mlog.travel.service; | ||
|
||
import com.mlog.travel.dto.SaveTravelRequest; | ||
import com.mlog.travel.dto.TravelDetailResult; | ||
import com.mlog.travel.dto.TravelListResult; | ||
import com.mlog.travel.dto.TravelPhotoListResult; | ||
import com.mlog.travel.dto.*; | ||
|
||
public interface TravelService { | ||
Boolean saveTravel(Long id, SaveTravelRequest saveTravelRequest); | ||
TravelListResult findAllTravel(Long userId); | ||
TravelDetailResult findTravelDetail(Long id); | ||
TravelPhotoListResult findTravelPhotoList(Long id); | ||
Boolean deleteTravel(Long travelId); | ||
Boolean updateTravel(Long userId, Long travelId, UpdateTravelRequest updateTravelRequest); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters