@@ -27,12 +27,13 @@ class TimetableLectureHandler(
2727 val customTimetable = req.awaitBody<CustomTimetableLectureAddLegacyRequestDto >()
2828 val isForced = req.parseQueryParam<Boolean >(" isForced" ) ? : customTimetable.isForced
2929
30- timetableLectureService.addCustomTimetableLecture(
31- userId = userId,
32- timetableId = timetableId,
33- timetableLectureRequest = customTimetable,
34- isForced = isForced,
35- ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
30+ timetableLectureService
31+ .addCustomTimetableLecture(
32+ userId = userId,
33+ timetableId = timetableId,
34+ timetableLectureRequest = customTimetable,
35+ isForced = isForced,
36+ ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
3637 }
3738
3839 suspend fun addLecture (req : ServerRequest ): ServerResponse =
@@ -42,12 +43,13 @@ class TimetableLectureHandler(
4243 val lectureId = req.pathVariable(" lectureId" )
4344 val isForced = req.parseQueryParam<Boolean >(" isForced" ) ? : req.awaitBodyOrNull<ForcedReq >()?.isForced ? : false
4445
45- timetableLectureService.addLecture(
46- userId = userId,
47- timetableId = timetableId,
48- lectureId = lectureId,
49- isForced = isForced,
50- ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
46+ timetableLectureService
47+ .addLecture(
48+ userId = userId,
49+ timetableId = timetableId,
50+ lectureId = lectureId,
51+ isForced = isForced,
52+ ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
5153 }
5254
5355 suspend fun resetTimetableLecture (req : ServerRequest ): ServerResponse =
@@ -57,12 +59,13 @@ class TimetableLectureHandler(
5759 val timetableLectureId = req.pathVariable(" timetableLectureId" )
5860 val isForced = req.parseQueryParam<Boolean >(" isForced" ) ? : req.awaitBodyOrNull<ForcedReq >()?.isForced ? : false
5961
60- timetableLectureService.resetTimetableLecture(
61- userId = userId,
62- timetableId = timetableId,
63- timetableLectureId = timetableLectureId,
64- isForced,
65- ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
62+ timetableLectureService
63+ .resetTimetableLecture(
64+ userId = userId,
65+ timetableId = timetableId,
66+ timetableLectureId = timetableLectureId,
67+ isForced,
68+ ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
6669 }
6770
6871 suspend fun modifyTimetableLecture (req : ServerRequest ): ServerResponse =
@@ -73,13 +76,14 @@ class TimetableLectureHandler(
7376 val modifyRequestDto = req.awaitBody<TimetableLectureModifyLegacyRequestDto >()
7477 val isForced = req.parseQueryParam<Boolean >(" isForced" ) ? : modifyRequestDto.isForced
7578
76- timetableLectureService.modifyTimetableLecture(
77- userId = userId,
78- timetableId = timetableId,
79- timetableLectureId = timetableLectureId,
80- modifyTimetableLectureRequestDto = modifyRequestDto,
81- isForced = isForced,
82- ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
79+ timetableLectureService
80+ .modifyTimetableLecture(
81+ userId = userId,
82+ timetableId = timetableId,
83+ timetableLectureId = timetableLectureId,
84+ modifyTimetableLectureRequestDto = modifyRequestDto,
85+ isForced = isForced,
86+ ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
8387 }
8488
8589 suspend fun deleteTimetableLecture (req : ServerRequest ): ServerResponse =
@@ -88,11 +92,12 @@ class TimetableLectureHandler(
8892 val timetableId = req.pathVariable(" timetableId" )
8993 val timetableLectureId = req.pathVariable(" timetableLectureId" )
9094
91- timetableLectureService.deleteTimetableLecture(
92- userId = userId,
93- timetableId = timetableId,
94- timetableLectureId = timetableLectureId,
95- ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
95+ timetableLectureService
96+ .deleteTimetableLecture(
97+ userId = userId,
98+ timetableId = timetableId,
99+ timetableLectureId = timetableLectureId,
100+ ).let { timetableService.convertTimetableToTimetableLegacyDto(it) }
96101 }
97102
98103 data class ForcedReq (
0 commit comments