From c69034519b30ca52ce5eeef57aa2bc7d1d38740b Mon Sep 17 00:00:00 2001 From: Taeho Date: Tue, 14 Nov 2023 21:52:25 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20dto=20=EC=A4=91=20tagList=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20tags=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kakao/linknamu/bookmark/dto/BookmarkResponseDto.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linknamu/src/main/java/com/kakao/linknamu/bookmark/dto/BookmarkResponseDto.java b/linknamu/src/main/java/com/kakao/linknamu/bookmark/dto/BookmarkResponseDto.java index faa6af3..6ddb599 100644 --- a/linknamu/src/main/java/com/kakao/linknamu/bookmark/dto/BookmarkResponseDto.java +++ b/linknamu/src/main/java/com/kakao/linknamu/bookmark/dto/BookmarkResponseDto.java @@ -27,14 +27,13 @@ public record BookmarkUpdateResponseDto( } } - @SuppressWarnings("checkstyle:RegexpSingleline") public record BookmarkGetResponseDto( Long bookmarkId, String title, String description, String url, String imageUrl, - List tagList, + List tags, LocalDateTime createdAt ) { @Builder @@ -48,7 +47,7 @@ public static BookmarkGetResponseDto of(BookmarkUserQueryDto bookmark, List .description(bookmark.getDescription()) .url(bookmark.getUrl()) .imageUrl(bookmark.getImageUrl()) - .tagList(tagList.stream().map(TagDto::of).toList()) + .tags(tagList.stream().map(TagDto::of).toList()) .createdAt(bookmark.getCreatedAt()) .build(); }