-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 퀴즈 포인트 및 퀴즈 기록 기능 추가 #374
Conversation
|
||
public QuestionInfo.Hint getHint(QuestionCommand.ViewHint command) { | ||
return questionService.getHint(command); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
명령자 입장에서는 힌트를 가져와라 인데, 명령의 의미를 포함한다면 View 보다 Get이 맞지 않을까라는 생각이 듭니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 수정했습니다 DTO도 맞춰서 GetHint로 수정되었습니다
// 대시 보드 를 위해 문제 기록 저장 | ||
questionHistoryStore.updateQuestionHistory(command.userId(), command.questionId(), isCorrect); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 DateProvider 메서드에 히스토리에 기록한다는 의미를 담는 record 라는 동사가 더 나은 것 같다고 생각하는데 어떻게 생각하시나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
record로 수정했습니다
@Builder | ||
public record Hint( | ||
String hint | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Builder
의 위치가 이상합니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서만 이렇게 보이는 것 같아요
return QuestionInfo.Hint.builder() | ||
.hint(this.findQuestionByQuestionId(questionId).getHint()) | ||
.build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QuestionInfo.Hint의 메서드로 생성하시는 건 어떠신가요? of 처럼..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QuestionInfo.Detail.of(questionDocument), QuestionInfo.Hint.of(this.findQuestionByQuestionId(questionId).getHint())
로 수정되었습니다
public void updateQuestionHistory(Boolean isCorrect) { | ||
if((this.firstTry).equals(Boolean.FALSE)){ | ||
this.finalTry = isCorrect; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사용하는 메서드일까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다른 메서드로 변경하면서 삭제되지 않았었네요 수정했습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다.
PR 타입 (하나 이상의 PR 타입을 선택해주세요)
변경 사항
참고 사항
셀프 체크리스트