From a6a28f1453fccdf095696aba39d1798b3be1b78a Mon Sep 17 00:00:00 2001 From: byeolhaha Date: Thu, 30 Nov 2023 00:14:50 +0900 Subject: [PATCH] =?UTF-8?q?Style=20:=20=EC=9D=91=EB=8B=B5=EA=B0=92=20updat?= =?UTF-8?q?e=20=EC=9D=91=EB=8B=B5=EA=B3=BC=20=EB=A7=9E=EC=B6=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AcademyCalendarLoadToUpdateResponse.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/guzzing/studayserver/domain/calendar/controller/dto/response/AcademyCalendarLoadToUpdateResponse.java b/src/main/java/org/guzzing/studayserver/domain/calendar/controller/dto/response/AcademyCalendarLoadToUpdateResponse.java index 2996f983..045f1225 100644 --- a/src/main/java/org/guzzing/studayserver/domain/calendar/controller/dto/response/AcademyCalendarLoadToUpdateResponse.java +++ b/src/main/java/org/guzzing/studayserver/domain/calendar/controller/dto/response/AcademyCalendarLoadToUpdateResponse.java @@ -36,17 +36,24 @@ public static AcademyCalendarLoadToUpdateResponse from(AcademyCalendarLoadToUpda public record LessonScheduleLoadToUpdateResponse( DayOfWeek dayOfWeek, - String lessonStartTime, - String lessonEndTime + LessonTime lessonTime ) { public static LessonScheduleLoadToUpdateResponse from( AcademyCalendarLoadToUpdateResult.LessonScheduleInfo result) { return new LessonScheduleLoadToUpdateResponse( result.dayOfWeek(), + new LessonTime( result.lessonStartTime(), - result.lessonEndTime() + result.lessonEndTime()) ); } + + public record LessonTime ( + String lessonStartTime, + String lessonEndTime + ) { + + } } }