diff --git a/src/main/java/com/dnd/namuiwiki/domain/survey/SurveyService.java b/src/main/java/com/dnd/namuiwiki/domain/survey/SurveyService.java index 10feb6b..e38e5b0 100644 --- a/src/main/java/com/dnd/namuiwiki/domain/survey/SurveyService.java +++ b/src/main/java/com/dnd/namuiwiki/domain/survey/SurveyService.java @@ -147,7 +147,7 @@ public GetAnswersByQuestionResponse getAnswersByQuestion(String wikiId, String q .build(); }); - return new GetAnswersByQuestionResponse(question.getTitle(), PageableDto.create(answers)); + return new GetAnswersByQuestionResponse(question.getTitle(), question.getName(), PageableDto.create(answers)); } private void validateFilter(Period period, Relation relation) { diff --git a/src/main/java/com/dnd/namuiwiki/domain/survey/model/dto/GetAnswersByQuestionResponse.java b/src/main/java/com/dnd/namuiwiki/domain/survey/model/dto/GetAnswersByQuestionResponse.java index 44004c8..7d25c89 100644 --- a/src/main/java/com/dnd/namuiwiki/domain/survey/model/dto/GetAnswersByQuestionResponse.java +++ b/src/main/java/com/dnd/namuiwiki/domain/survey/model/dto/GetAnswersByQuestionResponse.java @@ -1,6 +1,7 @@ package com.dnd.namuiwiki.domain.survey.model.dto; import com.dnd.namuiwiki.common.dto.PageableDto; +import com.dnd.namuiwiki.domain.question.type.QuestionName; import lombok.AllArgsConstructor; import lombok.Getter; @@ -10,5 +11,6 @@ @Getter public class GetAnswersByQuestionResponse { private String questionTitle; + private QuestionName questionName; private PageableDto answers; }