Skip to content

Commit

Permalink
Style : 응답값 update 응답과 맞춰 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
byeolhaha committed Nov 29, 2023
1 parent 16ec07b commit a6a28f1
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {

}
}
}

0 comments on commit a6a28f1

Please sign in to comment.