diff --git a/layer-api/src/main/java/org/layer/domain/answer/controller/dto/request/AnswerCreateRequest.java b/layer-api/src/main/java/org/layer/domain/answer/controller/dto/request/AnswerCreateRequest.java index 1304673e..ea69938a 100644 --- a/layer-api/src/main/java/org/layer/domain/answer/controller/dto/request/AnswerCreateRequest.java +++ b/layer-api/src/main/java/org/layer/domain/answer/controller/dto/request/AnswerCreateRequest.java @@ -9,7 +9,7 @@ public record AnswerCreateRequest( @Schema(description = "질문 타입", example = "plain_text") String questionType, @Schema(description = "질문에 대한 답변", example = "깊은 고민을 할 수 있어서 좋았어요.") - String answer + String answerContent ) { } diff --git a/layer-api/src/main/java/org/layer/domain/answer/service/AnswerService.java b/layer-api/src/main/java/org/layer/domain/answer/service/AnswerService.java index ad6be1b8..2feef8de 100644 --- a/layer-api/src/main/java/org/layer/domain/answer/service/AnswerService.java +++ b/layer-api/src/main/java/org/layer/domain/answer/service/AnswerService.java @@ -79,7 +79,7 @@ public void create(AnswerListCreateRequest request, Long spaceId, Long retrospec // 회고 질문 유효성 검사 - 각각의 질문들이 유효한지 questions.validateIdAndQuestionType(r.questionId(), QuestionType.stringToEnum(r.questionType())); - Answer answer = new Answer(retrospectId, r.questionId(), memberId, r.answer(), answerStatus); + Answer answer = new Answer(retrospectId, r.questionId(), memberId, r.answerContent(), answerStatus); answerRepository.save(answer); } }