From 0e9e776c2cd10eb489bb5ff90673c9a12fb5a289 Mon Sep 17 00:00:00 2001 From: kdkdhoho Date: Mon, 27 Jan 2025 11:57:54 +0900 Subject: [PATCH] =?UTF-8?q?=20feat:=20=ED=86=A0=ED=94=BD=20=EC=B6=94?= =?UTF-8?q?=EC=B2=9C=20API=20=EC=9D=91=EB=8B=B5=EA=B0=92=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#341)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/dto/RecommendTopicFindResponse.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/listywave/topic/application/service/dto/RecommendTopicFindResponse.java b/src/main/java/com/listywave/topic/application/service/dto/RecommendTopicFindResponse.java index b3c8dca1..b3d3b35c 100644 --- a/src/main/java/com/listywave/topic/application/service/dto/RecommendTopicFindResponse.java +++ b/src/main/java/com/listywave/topic/application/service/dto/RecommendTopicFindResponse.java @@ -5,12 +5,19 @@ public record RecommendTopicFindResponse( Long id, - String title + String title, + String categoryKorName ) { public static List toList(List topics) { return topics.stream() - .map(topic -> new RecommendTopicFindResponse(topic.getId(), topic.getTitle().getValue())) - .toList(); + .map( + topic -> new RecommendTopicFindResponse( + topic.getId(), + topic.getTitle().getValue(), + topic.getCategory().getViewName() + ) + ).toList(); } + }