From 027375a6a4e150fd9241b895f3255f3751335ecf Mon Sep 17 00:00:00 2001 From: Mingyu Song <100754581+mikekks@users.noreply.github.com> Date: Sun, 4 Aug 2024 01:24:41 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20answerContent=20=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(#104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../answer/controller/dto/request/AnswerCreateRequest.java | 2 +- .../java/org/layer/domain/answer/service/AnswerService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }