From 74a198d0e559822a6f530fcd1ed65e8b8c582b6c Mon Sep 17 00:00:00 2001 From: Martin0o0 <8546088@naver.com> Date: Tue, 21 Nov 2023 16:16:53 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B0=98=ED=99=98=EA=B0=92=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/teamh/khumon/service/LearningMaterialService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/teamh/khumon/service/LearningMaterialService.java b/src/main/java/com/teamh/khumon/service/LearningMaterialService.java index a6e507d..605e40b 100644 --- a/src/main/java/com/teamh/khumon/service/LearningMaterialService.java +++ b/src/main/java/com/teamh/khumon/service/LearningMaterialService.java @@ -212,8 +212,10 @@ public ResponseEntity postMyAnswer(Principal principal, Long learningMaterial log.info(myAnswerAIResponse.toString()); Long id = questionAnswerService.postMyAnswer(questionId, myAnswerRequest, myAnswerAIResponse); - Map response = new HashMap<>(); + Map response = new HashMap<>(); response.put("questionId", id); + response.put("isCorrect", myAnswerAIResponse.getCorrect()); + response.put("assessment", myAnswerAIResponse.getAssessment()); return new ResponseEntity<>(response, HttpStatus.CREATED); }