From 5ef26ca991b3877ba1ab83f73c5016169f1ef5eb Mon Sep 17 00:00:00 2001 From: bykbyk0401 Date: Fri, 29 Dec 2023 20:15:37 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20curriculum=20=EB=AC=B8=EC=9E=90?= =?UTF-8?q?=EC=97=B4=20=EC=B6=9C=EB=A0=A5=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../startlionserver/dto/response/part/PartResponse.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/startlion/startlionserver/dto/response/part/PartResponse.java b/src/main/java/com/startlion/startlionserver/dto/response/part/PartResponse.java index 8c3b8a1..eed15d8 100644 --- a/src/main/java/com/startlion/startlionserver/dto/response/part/PartResponse.java +++ b/src/main/java/com/startlion/startlionserver/dto/response/part/PartResponse.java @@ -19,7 +19,7 @@ public record PartResponse( String imageUrl, List partQuestions, - List curriculumContents, + String curriculumContents, List commonQuestions, Long curriculumGeneration ) { @@ -31,7 +31,7 @@ public record PartResponse( // part.getImageUrl() // ); - public static PartResponse of(Part part, List partQuestions, List curriculums, CommonQuestion commonQuestion) { + public static PartResponse of(Part part, List partQuestions, Curriculum curriculum, CommonQuestion commonQuestion) { return new PartResponse( part.getPartContent(), part.getTypeOfTalent(), @@ -39,9 +39,7 @@ public static PartResponse of(Part part, List partQuestions, List< partQuestions.stream() .flatMap(partQuestion -> Stream.of(partQuestion.getPartQuestion1(), partQuestion.getPartQuestion2(), partQuestion.getPartQuestion3())) .collect(Collectors.toList()), - curriculums.stream() - .map(Curriculum::getContent) - .collect(Collectors.toList()), + curriculum.getContent(), Arrays.asList( commonQuestion.getCommonQuestion1(), commonQuestion.getCommonQuestion2(),