From e034562ab852f35548b30eebdc4c84a25344bd4d Mon Sep 17 00:00:00 2001 From: Curry4182 Date: Mon, 29 Apr 2024 18:36:36 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A6=AC=EB=B7=B0=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=ED=95=A0=20=EB=95=8C=20=EC=82=AC=EC=9A=A9=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=A6=AC=EB=B7=B0=20id=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lime/domains/review/api/ReviewController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lime-api/src/main/java/com/programmers/lime/domains/review/api/ReviewController.java b/lime-api/src/main/java/com/programmers/lime/domains/review/api/ReviewController.java index 7340230f..cd11b077 100644 --- a/lime-api/src/main/java/com/programmers/lime/domains/review/api/ReviewController.java +++ b/lime-api/src/main/java/com/programmers/lime/domains/review/api/ReviewController.java @@ -19,7 +19,6 @@ import com.programmers.lime.domains.review.api.dto.request.ReviewCreateRequest; import com.programmers.lime.domains.review.api.dto.request.ReviewUpdateRequest; -import com.programmers.lime.domains.review.api.dto.response.ReviewCreateResponse; import com.programmers.lime.domains.review.api.dto.response.ReviewGetByCursorResponse; import com.programmers.lime.domains.review.api.dto.response.ReviewGetResponse; import com.programmers.lime.domains.review.application.ReviewLikeService; @@ -29,7 +28,6 @@ import com.programmers.lime.global.cursor.CursorRequest; import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.ExampleObject; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; @@ -46,14 +44,13 @@ public class ReviewController { @Operation(summary = "아이템 리뷰 생성", description = "아이템 id, 리뷰 평점, 리뷰 내용, 리뷰 이미지를 이용하여 리뷰를 생성 합니다.") @PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - public ResponseEntity createReview( + public ResponseEntity createReview( @Valid @ParameterObject @ModelAttribute final ReviewCreateRequest request, @RequestPart(value = "multipartReviewImages") final List multipartReviewImages ) { reviewService.createReview(request.itemId(), request.toReviewContent(), multipartReviewImages); - ReviewCreateResponse response = new ReviewCreateResponse(request.itemId()); - return ResponseEntity.ok(response); + return ResponseEntity.ok().build(); } @Operation(summary = "아이템 리뷰 목록 조회", description = "커서 id, 페이지 사이즈, 리뷰 정렬 조건, 아이템 id를 이용하여 리뷰 목록 조회 합니다.")