Skip to content

Commit

Permalink
#11 feat : 오늘의 뉴스레터 결과를 RetriveHomeResponse에 포함한다
Browse files Browse the repository at this point in the history
  • Loading branch information
packdev937 committed May 12, 2024
1 parent 71caf62 commit 2ea20f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public RetriveHomeResponse home(String email) {
NewsLetterThumbnailResponse todayNewsLetter = retrieveNewsLetterQuery.retriveLatestNewsLetter(
user);

return new RetriveHomeResponse();
return RetriveHomeResponse.builder()
.todayNewsLetter(todayNewsLetter)
.build();
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package kusitms.duduk.core.user.dto.response;

public record RetriveHomeResponse() {
import kusitms.duduk.core.newsletter.dto.response.NewsLetterThumbnailResponse;
import lombok.Builder;

@Builder(toBuilder = true)
public record RetriveHomeResponse(NewsLetterThumbnailResponse todayNewsLetter) {

}

0 comments on commit 2ea20f5

Please sign in to comment.