From e033b951175a322163bf8f6f6ca6555202634723 Mon Sep 17 00:00:00 2001 From: Cho Sangwook <82208159+Sangwook02@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:44:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20AssignmentResponse=20=EC=9E=98=EB=AA=BB?= =?UTF-8?q?=EB=90=9C=20=EA=B0=92=20=EB=A7=A4=ED=95=91=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20(#764)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 잘못된 값 매핑 수정 * docs: 스웨거 설명 수정 --- .../gdsc/domain/study/dto/response/AssignmentResponse.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/AssignmentResponse.java b/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/AssignmentResponse.java index ebfeaaecb..40b09fe30 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/AssignmentResponse.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/dto/response/AssignmentResponse.java @@ -5,7 +5,6 @@ import com.gdschongik.gdsc.domain.study.domain.vo.Assignment; import io.swagger.v3.oas.annotations.media.Schema; import java.time.LocalDateTime; -import java.time.LocalTime; public record AssignmentResponse( Long studyDetailId, @@ -15,7 +14,7 @@ public record AssignmentResponse( @Schema(description = "주차") Long week, @Schema(description = "과제 명세 링크") String descriptionLink, @Schema(description = "과제 상태") StudyStatus assignmentStatus, - @Schema(description = "커리큘럼 시작일") LocalTime curriculumStartAt) { + @Schema(description = "주차 시작일") LocalDateTime studyDetailStartDate) { public static AssignmentResponse from(StudyDetail studyDetail) { Assignment assignment = studyDetail.getAssignment(); return new AssignmentResponse( @@ -26,6 +25,6 @@ public static AssignmentResponse from(StudyDetail studyDetail) { studyDetail.getWeek(), assignment.getDescriptionLink(), assignment.getStatus(), - studyDetail.getCurriculum().getStartAt()); + studyDetail.getPeriod().getStartDate()); } }