diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/domain/Difficulty.java b/src/main/java/com/gdschongik/gdsc/domain/study/domain/Difficulty.java index bea99e59b..98f526bc2 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/domain/Difficulty.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/domain/Difficulty.java @@ -8,7 +8,8 @@ public enum Difficulty { HIGH("상"), MEDIUM("중"), - LOW("하"); + LOW("하"), + BASIC("기초"); private final String value; } diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/StudyStudentSessionResponse.java b/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/StudyStudentSessionResponse.java index 47b1ee783..b903bd230 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/StudyStudentSessionResponse.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/StudyStudentSessionResponse.java @@ -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) { @@ -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); } }