Skip to content

Commit

Permalink
feat: 스터디 기초 난이도 추가 및 세션조회에 과제제출링크 필드 추가 (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
seulgi99 authored Aug 24, 2024
1 parent 9baf58c commit 94c694c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
public enum Difficulty {
HIGH("상"),
MEDIUM("중"),
LOW("하");
LOW("하"),
BASIC("기초");

private final String value;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public record StudyStudentSessionResponse(
@Schema(description = "출석 상태") AttendanceStatusResponse attendanceStatus,
@Schema(description = "과제 개설 상태") StudyStatus assignmentStatus,
@Schema(description = "과제 제출 상태") AssignmentSubmissionStatusResponse assignmentSubmissionStatus,
@Schema(description = "과제 실패 타입") SubmissionFailureType submissionFailureType) {
@Schema(description = "과제 실패 타입") SubmissionFailureType submissionFailureType,
@Schema(description = "과제 제출 링크") String submissionLink) {

public static StudyStudentSessionResponse of(
StudyDetail studyDetail, AssignmentHistory assignmentHistory, boolean isAttended, LocalDateTime now) {
Expand All @@ -37,6 +38,7 @@ public static StudyStudentSessionResponse of(
AttendanceStatusResponse.of(studyDetail, now.toLocalDate(), isAttended),
studyDetail.getAssignment().getStatus(),
AssignmentSubmissionStatusResponse.from(assignmentHistory),
assignmentHistory != null ? assignmentHistory.getSubmissionFailureType() : NOT_SUBMITTED);
assignmentHistory != null ? assignmentHistory.getSubmissionFailureType() : NOT_SUBMITTED,
assignmentHistory != null ? assignmentHistory.getSubmissionLink() : null);
}
}

0 comments on commit 94c694c

Please sign in to comment.