@@ -75,4 +75,68 @@ public static class CreateClothesRequest {
7575 @ Schema (description = "전시 이미지 목록" , example = "[\" https://example.com/image1.jpg\" , \" https://example.com/image2.jpg\" ]" )
7676 private List <String > displayImages ;
7777 }
78+
79+
80+ @ Getter
81+ @ NoArgsConstructor
82+ public static class UpdateRequest {
83+
84+ @ NotNull (message = "옷 ID는 필수입니다." )
85+ @ Schema (description = "옷 ID" , example = "1" )
86+ private Long clothesId ;
87+
88+ //값이 넘어왔을 때 공백이나 빈 문자열 허용하지 않도록 작성.
89+ // 이미지, 카테고리, 스타일만 수정할 수 없고 나머지는 수정할 수 있음.
90+
91+ @ NotBlank (message = "제목은 공백일 수 없습니다." )
92+ private String title ;
93+
94+ @ Schema (description = "수정할 가격" , example = "35000" )
95+ private Integer price ;
96+
97+ @ NotBlank (message = "코멘트는 공백일 수 없습니다." )
98+ private String comment ;
99+
100+ @ NotBlank (message = "주소는 공백일 수 없습니다." )
101+ private String address ;
102+
103+ private Double lat ;
104+ private Double lng ;
105+
106+ private Boolean saleAgreed ;
107+ private Boolean meetupAgreed ;
108+ private Boolean offerAgreed ;
109+
110+ // 사이즈 정보
111+ @ Schema (description = "총장" , example = "100" )
112+ private String totalLength ;
113+ @ Schema (description = "가슴 단면" , example = "50" )
114+ private String chestWidth ;
115+ @ Schema (description = "어깨 너비" , example = "45" )
116+ private String shoulderWidth ;
117+ @ Schema (description = "발 사이즈" , example = "270" )
118+ private String footSize ;
119+ @ Schema (description = "허리 단면" , example = "40" )
120+ private String waistMeasurement ;
121+ @ Schema (description = "허벅지 단면" , example = "30" )
122+ private String thighMeasurement ;
123+
124+ // 판매 정보
125+ private LocalDate salesPeriod ;
126+ private Long discountRate ;
127+
128+ @ Schema (description = "수정할 피팅 이미지" , example = "data:image/jpeg;base64,..." )
129+ private String fittingImage ;
130+
131+ @ Schema (description = "수정할 전시 이미지 목록" , example = "[\" data:image/jpeg;base64,...\" , \" https://existing-url.com/img.jpg\" ]" )
132+ private List <String > displayImages ;
133+ }
134+
135+ @ Getter
136+ @ NoArgsConstructor
137+ public static class DeleteRequest {
138+ @ NotNull (message = "옷 ID는 필수입니다." )
139+ @ Schema (description = "옷 ID" , example = "1" )
140+ private Long clothesId ;
141+ }
78142}
0 commit comments