diff --git a/src/main/java/com/hanaro/hanafun/lesson/controller/LessonController.java b/src/main/java/com/hanaro/hanafun/lesson/controller/LessonController.java index f53052e..f34099c 100644 --- a/src/main/java/com/hanaro/hanafun/lesson/controller/LessonController.java +++ b/src/main/java/com/hanaro/hanafun/lesson/controller/LessonController.java @@ -2,7 +2,6 @@ import com.hanaro.hanafun.common.dto.ApiResponse; import com.hanaro.hanafun.lesson.dto.request.CreateLessonReqDto; -import com.hanaro.hanafun.lesson.dto.request.OpenedLessonsReqDto; import com.hanaro.hanafun.lesson.dto.response.FullLessonResDto; import com.hanaro.hanafun.lesson.dto.response.LessonInfoResDto; import com.hanaro.hanafun.lesson.dto.response.OpenedLessonsResDto; @@ -61,6 +60,7 @@ public ResponseEntity uploadImage(@RequestParam("file") MultipartFile fi // 클래스 등록하기 @PostMapping("/lesson/create") public void createLesson(@AuthenticationPrincipal Long userId, @RequestBody CreateLessonReqDto createLessonReqDto) { + System.out.println("들어왔니?"); lessonService.createLesson(userId, createLessonReqDto); } diff --git a/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonDateReqDto.java b/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonDateReqDto.java index c9dc6ef..ec5766c 100644 --- a/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonDateReqDto.java +++ b/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonDateReqDto.java @@ -12,6 +12,7 @@ @Getter @Builder @AllArgsConstructor +@NoArgsConstructor public class CreateLessonDateReqDto { @JsonFormat(pattern = "yyyy-MM-dd") private LocalDate date; diff --git a/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonReqDto.java b/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonReqDto.java index a8517c5..afa695c 100644 --- a/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonReqDto.java +++ b/src/main/java/com/hanaro/hanafun/lesson/dto/request/CreateLessonReqDto.java @@ -10,6 +10,7 @@ @Getter @Builder @AllArgsConstructor +@NoArgsConstructor public class CreateLessonReqDto { private Long categoryId; private String title;