Skip to content

Commit

Permalink
add :: 피드조회시 미리보기 이미지도 같이
Browse files Browse the repository at this point in the history
  • Loading branch information
Minnsuaa committed Jan 1, 2025
1 parent 771b382 commit d0043b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public FeedDetailResponse findByFeedUrl(String feedUrl) {
public List<FeedListResponse> getFeeds() {
return queryFactory
.select(Projections.constructor(FeedListResponse.class, qFeed.id, qFeed.userName,
qFeed.title, qFeed.createdAt, qFeed.content))
qFeed.title, qFeed.createdAt, qFeed.content, qFeed.previewImageUrl))
.from(qFeed)
.fetch();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ public class FeedListResponse {

private String content;

private String previewImageUrl;

}

0 comments on commit d0043b8

Please sign in to comment.