Skip to content

Commit

Permalink
fix: spotDetail response 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
do-dop committed Feb 19, 2025
1 parent 5da15b3 commit 1b92396
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/PATATA/domain/spot/dto/SpotResponseDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public static class DetailResponse {
private String spotDescription;
private String spotAddress;
private String spotAddressDetail;
private Double latitude;
private Double longitude;
private Long categoryId;
private String memberName;
private List<String> images;
Expand Down Expand Up @@ -84,6 +86,8 @@ public static DetailResponse from(Spot spot, Boolean isAuthor, Boolean isScraped
.spotDescription(spot.getSpotDescription())
.spotAddress(spot.getSpotAddress())
.spotAddressDetail(spot.getSpotAddressDetail())
.latitude(spot.getSpotLocation().getY())
.longitude(spot.getSpotLocation().getX())
.categoryId(spot.getSpotCategory().getCategoryId())
.memberName(spot.getMember() != null ? spot.getMember().getNickName() : "알 수 없음")
.images(images)
Expand Down

0 comments on commit 1b92396

Please sign in to comment.