From 7ecaadb007d2c6b26aff8f0e3e3a3630b99e51f1 Mon Sep 17 00:00:00 2001 From: doSeung11 Date: Fri, 5 Jul 2024 16:18:11 +0900 Subject: [PATCH] fix: noargsconstuctor --- .../com/hanaro/hanafun/lesson/controller/LessonController.java | 2 +- .../hanafun/lesson/dto/request/CreateLessonDateReqDto.java | 1 + .../hanaro/hanafun/lesson/dto/request/CreateLessonReqDto.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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;