Skip to content
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 @@ -7,17 +7,18 @@
import site.travellaboratory.be.article.infrastructure.persistence.entity.BookmarkEntity;

public record BookmarkResponse(
Long userId, // writerId
String nickname,
String profileImgUrl,
Long articleId,
String title,
List<ArticleLocationEntity> locations,
LocalDate startAt,
LocalDate endAt,
String expense,
String profileImgUrl,
String coverImgUrl,
String travelCompanion,
List<String> travelStyles,
String name,
Long bookmarkCount,
Boolean isBookmarked
) {
Expand All @@ -28,17 +29,18 @@ public static BookmarkResponse of(final BookmarkEntity bookmarkEntity, final Lon
.toList();

return new BookmarkResponse(
bookmarkEntity.getArticleEntity().getUserEntity().getId(),
bookmarkEntity.getArticleEntity().getUserEntity().getNickname(),
bookmarkEntity.getArticleEntity().getUserEntity().getProfileImgUrl(),
bookmarkEntity.getArticleEntity().getId(),
bookmarkEntity.getArticleEntity().getTitle(),
bookmarkEntity.getArticleEntity().getLocationEntities(),
bookmarkEntity.getArticleEntity().getStartAt(),
bookmarkEntity.getArticleEntity().getEndAt(),
bookmarkEntity.getArticleEntity().getExpense(),
bookmarkEntity.getArticleEntity().getUserEntity().getProfileImgUrl(),
bookmarkEntity.getArticleEntity().getCoverImgUrl(),
bookmarkEntity.getArticleEntity().getTravelCompanion().getName(),
travelStyleNames,
bookmarkEntity.getArticleEntity().getNickname(),
bookmarkCount,
isBookmarked
);
Expand Down
Loading