@@ -35,7 +35,7 @@ public class StudyCreateRequest {
3535 private String location ;
3636
3737 @ NotNull
38- @ Schema (description = "시작일" , example = "2025-07-15 " )
38+ @ Schema (description = "시작일" , example = "2025-07-25T10:00:00 " )
3939 private LocalDateTime startDate ;
4040
4141 @ NotNull
@@ -45,14 +45,11 @@ public class StudyCreateRequest {
4545 @ Schema (description = "스터디 소개" , example = "자바 스터디입니다." )
4646 private String introduction ;
4747
48- @ Schema (description = "대표 이미지" , example = "http://localhost:8083/image.jpg" )
49- private String imageUrl ;
50-
5148 private StudyCreateRequest () {}
5249
5350 @ Builder
5451 private StudyCreateRequest (String name , Category category , int capacity , StudyType studyType , String location ,
55- LocalDateTime startDate , LocalDateTime endDate , String introduction , String imageUrl ) {
52+ LocalDateTime startDate , LocalDateTime endDate , String introduction ) {
5653 this .name = name ;
5754 this .category = category ;
5855 this .capacity = capacity ;
@@ -61,20 +58,19 @@ private StudyCreateRequest(String name, Category category, int capacity, StudyTy
6158 this .startDate = startDate ;
6259 this .endDate = endDate ;
6360 this .introduction = introduction ;
64- this .imageUrl = imageUrl ;
6561 }
6662
6763 public Study toEntity (String imageUrl ) {
6864 return Study .builder ()
69- .name (this .name )
70- .category (this .category )
71- .capacity (this .capacity )
72- .studyType (this .studyType )
73- .location (this .location )
74- .startDate (this .startDate )
75- .endDate (this .endDate )
76- .introduction (this .introduction )
77- .imageUrl (imageUrl )
78- .build ();
65+ .name (this .name )
66+ .category (this .category )
67+ .capacity (this .capacity )
68+ .studyType (this .studyType )
69+ .location (this .location )
70+ .startDate (this .startDate )
71+ .endDate (this .endDate )
72+ .introduction (this .introduction )
73+ .imageUrl (imageUrl )
74+ .build ();
7975 }
8076}
0 commit comments