Skip to content

Commit

Permalink
Fix: dto 중 tagList 이름 tags로 변경(weekly -> master) Merge
Browse files Browse the repository at this point in the history
Fix: dto 중 tagList 이름 tags로 변경(weekly -> master)
  • Loading branch information
Train0303 committed Nov 14, 2023
2 parents f3ad31e + 18ca11a commit 0d0299f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ public record BookmarkUpdateResponseDto(
}
}

@SuppressWarnings("checkstyle:RegexpSingleline")
public record BookmarkGetResponseDto(
Long bookmarkId,
String title,
String description,
String url,
String imageUrl,
List<TagDto> tagList,
List<TagDto> tags,
LocalDateTime createdAt
) {
@Builder
Expand All @@ -48,7 +47,7 @@ public static BookmarkGetResponseDto of(BookmarkUserQueryDto bookmark, List<Tag>
.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();
}
Expand All @@ -60,7 +59,7 @@ public static BookmarkGetResponseDto of(Bookmark bookmark, List<Tag> tagList) {
.description(bookmark.getBookmarkDescription())
.url(bookmark.getBookmarkLink())
.imageUrl(bookmark.getBookmarkThumbnail())
.tagList(tagList.stream().map(TagDto::of).toList())
.tags(tagList.stream().map(TagDto::of).toList())
.createdAt(bookmark.getCreatedAt())
.build();
}
Expand Down

0 comments on commit 0d0299f

Please sign in to comment.