From 473515d16ece20d2198cfbd60dee3e433ba48cfe Mon Sep 17 00:00:00 2001 From: 12xii Date: Fri, 17 Nov 2023 08:24:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20question=20set=20response=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dsm/inq/domain/question/presentation/dto/Responses.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/hs/dsm/inq/domain/question/presentation/dto/Responses.kt b/src/main/kotlin/kr/hs/dsm/inq/domain/question/presentation/dto/Responses.kt index 40162ce..a48147d 100644 --- a/src/main/kotlin/kr/hs/dsm/inq/domain/question/presentation/dto/Responses.kt +++ b/src/main/kotlin/kr/hs/dsm/inq/domain/question/presentation/dto/Responses.kt @@ -328,7 +328,8 @@ data class GetQuestionSetDetailResponse( val isDisliked: Boolean, val isFavorite: Boolean, val tags: List, - val comments: List + val comments: List, + val questionIdList: List ) { companion object { fun of(questionSetDetail: QuestionSetDetailDto, questionList: List, user: User) = questionSetDetail.run { @@ -359,7 +360,8 @@ data class GetQuestionSetDetailResponse( comments = commentList.distinct().map { CommentResponse.of( comments = it, isOwner = writerId == user.id || it.writer.id == user.id - ) } + ) }, + questionIdList = questionList.map{questions -> questions.id } ) } }