Skip to content

Commit

Permalink
feat: 반환값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin0o0 committed Nov 21, 2023
1 parent fe78642 commit 74a198d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ public ResponseEntity<?> postMyAnswer(Principal principal, Long learningMaterial
log.info(myAnswerAIResponse.toString());

Long id = questionAnswerService.postMyAnswer(questionId, myAnswerRequest, myAnswerAIResponse);
Map<String, Long> response = new HashMap<>();
Map<String, Object> response = new HashMap<>();
response.put("questionId", id);
response.put("isCorrect", myAnswerAIResponse.getCorrect());
response.put("assessment", myAnswerAIResponse.getAssessment());
return new ResponseEntity<>(response, HttpStatus.CREATED);
}

Expand Down

0 comments on commit 74a198d

Please sign in to comment.