Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: dto 중 tagList 이름 tags로 변경(weekly -> master) #253

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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