Skip to content

Commit 09595e1

Browse files
Merge pull request #400 from Juinjang/feat/#399
[feat/#399] 임장 상세 response 도로명 주소, 상세 주소 분리
2 parents 8f7a696 + d2c5216 commit 09595e1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/umc/th/juinjang/api/limjang/service/response/UserNoteGetResponse.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public record UserNoteGetResponse(
1616
LimjangPriceType priceType,
1717
String buildingName,
1818
List<String> images,
19-
String address,
19+
String roadAddress,
20+
String addressDetail,
2021
String price,
2122
String monthlyRent,
2223
String updatedAt,
@@ -31,7 +32,8 @@ public static UserNoteGetResponse of(boolean isShared, Limjang note) {
3132
note.getPriceType(),
3233
note.getNickname(),
3334
note.getImageList().stream().map(Image::getImageUrl).limit(3).toList(),
34-
note.getAddressEntity().getRoadAddress() + " " + note.getAddressEntity().getAddressDetail(),
35+
note.getAddressEntity().getRoadAddress(),
36+
note.getAddressEntity().getAddressDetail(),
3537
note.getLimjangPrice().getPrice(note.getPriceType(), note.getPurpose()),
3638
note.getPriceType() == LimjangPriceType.MONTHLY_RENT ? note.getLimjangPrice().getMonthlyRent() : null,
3739
note.getUpdatedAt().format(DateTimeFormatter.ofPattern("yy.MM.dd")),

0 commit comments

Comments
 (0)