From 0b699b8eb459b28aeebe572a4765b154d5f09473 Mon Sep 17 00:00:00 2001 From: Namgyu11 <103015031+Namgyu11@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:43:07 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20AccompanyReview=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20DTO=20=ED=8C=A8=ED=82=A4=EC=A7=80=20=EA=B5=AC?= =?UTF-8?q?=EC=A1=B0=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AccompanyReview 관련 DTO 클래스를 response 패키지로 이동했습니다. - 더 명확한 패키지 구조로 코드 가독성을 개선했습니다. Signed-off-by: Namgyu11 <103015031+Namgyu11@users.noreply.github.com> --- .../connectripbe/connectrip_be/member/dto/ProfileDto.java | 2 +- .../connectrip_be/member/service/MemberServiceImpl.java | 2 +- .../dto/{ => response}/AccompanyReviewListResponse.java | 3 ++- .../review/dto/{ => response}/AccompanyReviewResponse.java | 2 +- .../dto/{ => response}/AccompanyReviewSummaryResponse.java | 2 +- .../review/service/AccompanyReviewService.java | 6 +++--- .../review/service/impl/AccompanyReviewServiceImpl.java | 6 +++--- .../connectrip_be/review/web/AccompanyReviewController.java | 6 +++--- 8 files changed, 15 insertions(+), 14 deletions(-) rename src/main/java/connectripbe/connectrip_be/review/dto/{ => response}/AccompanyReviewListResponse.java (62%) rename src/main/java/connectripbe/connectrip_be/review/dto/{ => response}/AccompanyReviewResponse.java (96%) rename src/main/java/connectripbe/connectrip_be/review/dto/{ => response}/AccompanyReviewSummaryResponse.java (70%) diff --git a/src/main/java/connectripbe/connectrip_be/member/dto/ProfileDto.java b/src/main/java/connectripbe/connectrip_be/member/dto/ProfileDto.java index 944feac2..91eafab9 100644 --- a/src/main/java/connectripbe/connectrip_be/member/dto/ProfileDto.java +++ b/src/main/java/connectripbe/connectrip_be/member/dto/ProfileDto.java @@ -2,7 +2,7 @@ import connectripbe.connectrip_be.global.util.time.DateTimeUtils; import connectripbe.connectrip_be.member.entity.MemberEntity; -import connectripbe.connectrip_be.review.dto.AccompanyReviewResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewResponse; import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/src/main/java/connectripbe/connectrip_be/member/service/MemberServiceImpl.java b/src/main/java/connectripbe/connectrip_be/member/service/MemberServiceImpl.java index 30ef656a..94aabbf0 100644 --- a/src/main/java/connectripbe/connectrip_be/member/service/MemberServiceImpl.java +++ b/src/main/java/connectripbe/connectrip_be/member/service/MemberServiceImpl.java @@ -20,7 +20,7 @@ import connectripbe.connectrip_be.member.exception.DuplicateMemberNicknameException; import connectripbe.connectrip_be.member.exception.NotFoundMemberException; import connectripbe.connectrip_be.member.repository.MemberJpaRepository; -import connectripbe.connectrip_be.review.dto.AccompanyReviewResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewResponse; import connectripbe.connectrip_be.review.repository.AccompanyReviewRepository; import java.time.LocalDate; import java.time.Period; diff --git a/src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewListResponse.java b/src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewListResponse.java similarity index 62% rename from src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewListResponse.java rename to src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewListResponse.java index f3a57cbb..c7b8dfa7 100644 --- a/src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewListResponse.java +++ b/src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewListResponse.java @@ -1,5 +1,6 @@ -package connectripbe.connectrip_be.review.dto; +package connectripbe.connectrip_be.review.dto.response; +import connectripbe.connectrip_be.review.dto.AccompanyReviewDto; import java.util.List; public record AccompanyReviewListResponse( diff --git a/src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewResponse.java b/src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewResponse.java similarity index 96% rename from src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewResponse.java rename to src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewResponse.java index 54bc35cb..fd90f4a7 100644 --- a/src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewResponse.java +++ b/src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewResponse.java @@ -1,4 +1,4 @@ -package connectripbe.connectrip_be.review.dto; +package connectripbe.connectrip_be.review.dto.response; import connectripbe.connectrip_be.global.util.time.DateTimeUtils; import connectripbe.connectrip_be.review.entity.AccompanyReviewEntity; diff --git a/src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewSummaryResponse.java b/src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewSummaryResponse.java similarity index 70% rename from src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewSummaryResponse.java rename to src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewSummaryResponse.java index 40254b85..6641bd2a 100644 --- a/src/main/java/connectripbe/connectrip_be/review/dto/AccompanyReviewSummaryResponse.java +++ b/src/main/java/connectripbe/connectrip_be/review/dto/response/AccompanyReviewSummaryResponse.java @@ -1,4 +1,4 @@ -package connectripbe.connectrip_be.review.dto; +package connectripbe.connectrip_be.review.dto.response; public record AccompanyReviewSummaryResponse( String revieweeNickname, diff --git a/src/main/java/connectripbe/connectrip_be/review/service/AccompanyReviewService.java b/src/main/java/connectripbe/connectrip_be/review/service/AccompanyReviewService.java index 16eec66c..a82b7def 100644 --- a/src/main/java/connectripbe/connectrip_be/review/service/AccompanyReviewService.java +++ b/src/main/java/connectripbe/connectrip_be/review/service/AccompanyReviewService.java @@ -1,9 +1,9 @@ package connectripbe.connectrip_be.review.service; -import connectripbe.connectrip_be.review.dto.AccompanyReviewListResponse; import connectripbe.connectrip_be.review.dto.AccompanyReviewRequest; -import connectripbe.connectrip_be.review.dto.AccompanyReviewResponse; -import connectripbe.connectrip_be.review.dto.AccompanyReviewSummaryResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewListResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewSummaryResponse; import java.util.List; public interface AccompanyReviewService { diff --git a/src/main/java/connectripbe/connectrip_be/review/service/impl/AccompanyReviewServiceImpl.java b/src/main/java/connectripbe/connectrip_be/review/service/impl/AccompanyReviewServiceImpl.java index 176d6368..58b9cbb7 100644 --- a/src/main/java/connectripbe/connectrip_be/review/service/impl/AccompanyReviewServiceImpl.java +++ b/src/main/java/connectripbe/connectrip_be/review/service/impl/AccompanyReviewServiceImpl.java @@ -11,10 +11,10 @@ import connectripbe.connectrip_be.member.exception.NotFoundMemberException; import connectripbe.connectrip_be.member.repository.MemberJpaRepository; import connectripbe.connectrip_be.review.dto.AccompanyReviewDto; -import connectripbe.connectrip_be.review.dto.AccompanyReviewListResponse; import connectripbe.connectrip_be.review.dto.AccompanyReviewRequest; -import connectripbe.connectrip_be.review.dto.AccompanyReviewResponse; -import connectripbe.connectrip_be.review.dto.AccompanyReviewSummaryResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewListResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewSummaryResponse; import connectripbe.connectrip_be.review.entity.AccompanyReviewEntity; import connectripbe.connectrip_be.review.repository.AccompanyReviewRepository; import connectripbe.connectrip_be.review.service.AccompanyReviewService; diff --git a/src/main/java/connectripbe/connectrip_be/review/web/AccompanyReviewController.java b/src/main/java/connectripbe/connectrip_be/review/web/AccompanyReviewController.java index 40e68f6c..2a6188bb 100644 --- a/src/main/java/connectripbe/connectrip_be/review/web/AccompanyReviewController.java +++ b/src/main/java/connectripbe/connectrip_be/review/web/AccompanyReviewController.java @@ -1,9 +1,9 @@ package connectripbe.connectrip_be.review.web; -import connectripbe.connectrip_be.review.dto.AccompanyReviewListResponse; import connectripbe.connectrip_be.review.dto.AccompanyReviewRequest; -import connectripbe.connectrip_be.review.dto.AccompanyReviewResponse; -import connectripbe.connectrip_be.review.dto.AccompanyReviewSummaryResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewListResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewResponse; +import connectripbe.connectrip_be.review.dto.response.AccompanyReviewSummaryResponse; import connectripbe.connectrip_be.review.service.AccompanyReviewService; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity;