diff --git a/api/src/main/kotlin/com/mashup/dojo/MemberController.kt b/api/src/main/kotlin/com/mashup/dojo/MemberController.kt index f2b51f2..926ead2 100644 --- a/api/src/main/kotlin/com/mashup/dojo/MemberController.kt +++ b/api/src/main/kotlin/com/mashup/dojo/MemberController.kt @@ -224,6 +224,7 @@ class MemberController( receivedMySpacePicks.map { SpacePickDetail( pickId = it.pickId.value, + questionId = it.questionId.value, rank = it.rank, pickContent = it.pickContent, pickCount = it.pickCount, @@ -252,6 +253,7 @@ class MemberController( receivedMySpacePicks.map { SpacePickDetail( pickId = it.pickId.value, + questionId = it.questionId.value, rank = it.rank, pickContent = it.pickContent, pickCount = it.pickCount, diff --git a/api/src/main/kotlin/com/mashup/dojo/dto/SpaceResponse.kt b/api/src/main/kotlin/com/mashup/dojo/dto/SpaceResponse.kt index 928073c..39fee7a 100644 --- a/api/src/main/kotlin/com/mashup/dojo/dto/SpaceResponse.kt +++ b/api/src/main/kotlin/com/mashup/dojo/dto/SpaceResponse.kt @@ -8,6 +8,8 @@ import java.time.LocalDateTime data class SpacePickDetail( @Schema(description = "픽의 고유 ID", example = "pickId1") val pickId: String, + @Schema(description = "질문의 고유 ID", example = "questionId1") + val questionId: String, @Schema(description = "픽의 순위", example = "1") val rank: Int, @Schema(description = "픽의 내용", example = "대충 작업해도 퀄리티 잘 내오는 사람은?") diff --git a/service/src/main/kotlin/com/mashup/dojo/service/DefaultPickService.kt b/service/src/main/kotlin/com/mashup/dojo/service/DefaultPickService.kt index e600f4f..7a4386d 100644 --- a/service/src/main/kotlin/com/mashup/dojo/service/DefaultPickService.kt +++ b/service/src/main/kotlin/com/mashup/dojo/service/DefaultPickService.kt @@ -116,6 +116,7 @@ interface PickService { data class SpacePickDetail( val pickId: PickId, + val questionId: QuestionId, val rank: Int = -1, val pickContent: String, val pickCount: Int, @@ -448,6 +449,7 @@ class DefaultPickService( val pickCount = pickRepository.findPickDetailCount(memberId = memberId.value, questionId = pick.questionId) PickService.SpacePickDetail( pickId = PickId(pick.pickId), + questionId = QuestionId(pick.questionId), pickCount = pickCount.toInt(), pickContent = pick.questionContent, createdAt = pick.createdAt