From f4ad5089248676a3dc810d57ab4bae0e0614f077 Mon Sep 17 00:00:00 2001 From: Mingadinga Date: Sun, 28 Aug 2022 08:49:18 +0900 Subject: [PATCH] refactored package structures #4 --- src/main/java/com/team20/t4/member/domain/Member.java | 3 +-- src/main/java/com/team20/t4/plan/PlanController.java | 6 ++++++ src/main/java/com/team20/t4/plan/PlanService.java | 2 ++ .../java/com/team20/t4/plan/{ => domain}/FoodType.java | 2 +- src/main/java/com/team20/t4/plan/{ => domain}/Gu.java | 2 +- .../java/com/team20/t4/plan/{ => domain}/Location.java | 2 +- src/main/java/com/team20/t4/plan/{ => domain}/Plan.java | 4 ++-- .../com/team20/t4/plan/{ => domain}/PlanRepository.java | 3 ++- .../java/com/team20/t4/plan/{ => domain}/Progress.java | 2 +- .../com/team20/t4/plan/{ => domain}/RegisterHistory.java | 2 +- .../t4/plan/{ => domain}/RegisterHistoryRepository.java | 5 +++-- src/main/java/com/team20/t4/plan/{ => domain}/State.java | 2 +- .../java/com/team20/t4/plan/{ => dto}/AppointmentPost.java | 5 ++--- .../com/team20/t4/plan/{ => dto}/AppointmentTimeVO.java | 2 +- .../com/team20/t4/plan/{ => dto}/PlanInfoResponseDto.java | 5 ++++- .../com/team20/t4/plan/{ => dto}/PlanSaveRequestDto.java | 7 +++++-- .../com/team20/t4/plan/{ => dto}/PlanUpdateRequestDto.java | 7 +++++-- .../t4/plan/{ => dto}/RegisterHistoryResponseDto.java | 2 +- .../t4/plan/{ => dto}/RegisterHistorySaveRequestDto.java | 3 ++- .../team20/t4/plan/{ => dto}/RegisterHistoryUpdateDto.java | 5 ++++- src/main/java/com/team20/t4/post/PostController.java | 3 +++ src/main/java/com/team20/t4/post/PostService.java | 6 ++++++ src/main/java/com/team20/t4/post/{ => domain}/Post.java | 5 ++--- .../com/team20/t4/post/{ => domain}/PostRepository.java | 3 ++- .../java/com/team20/t4/post/{ => dto}/PostResponseDto.java | 3 ++- .../com/team20/t4/post/{ => dto}/PostSaveRequestDto.java | 4 ++-- .../com/team20/t4/post/{ => dto}/PostSaveRequestVo.java | 3 ++- .../com/team20/t4/post/{ => dto}/PostUpdateRequestDto.java | 3 ++- 28 files changed, 67 insertions(+), 34 deletions(-) rename src/main/java/com/team20/t4/plan/{ => domain}/FoodType.java (86%) rename src/main/java/com/team20/t4/plan/{ => domain}/Gu.java (92%) rename src/main/java/com/team20/t4/plan/{ => domain}/Location.java (73%) rename src/main/java/com/team20/t4/plan/{ => domain}/Plan.java (96%) rename src/main/java/com/team20/t4/plan/{ => domain}/PlanRepository.java (64%) rename src/main/java/com/team20/t4/plan/{ => domain}/Progress.java (86%) rename src/main/java/com/team20/t4/plan/{ => domain}/RegisterHistory.java (96%) rename src/main/java/com/team20/t4/plan/{ => domain}/RegisterHistoryRepository.java (76%) rename src/main/java/com/team20/t4/plan/{ => domain}/State.java (85%) rename src/main/java/com/team20/t4/plan/{ => dto}/AppointmentPost.java (65%) rename src/main/java/com/team20/t4/plan/{ => dto}/AppointmentTimeVO.java (89%) rename src/main/java/com/team20/t4/plan/{ => dto}/PlanInfoResponseDto.java (90%) rename src/main/java/com/team20/t4/plan/{ => dto}/PlanSaveRequestDto.java (87%) rename src/main/java/com/team20/t4/plan/{ => dto}/PlanUpdateRequestDto.java (85%) rename src/main/java/com/team20/t4/plan/{ => dto}/RegisterHistoryResponseDto.java (58%) rename src/main/java/com/team20/t4/plan/{ => dto}/RegisterHistorySaveRequestDto.java (76%) rename src/main/java/com/team20/t4/plan/{ => dto}/RegisterHistoryUpdateDto.java (80%) rename src/main/java/com/team20/t4/post/{ => domain}/Post.java (88%) rename src/main/java/com/team20/t4/post/{ => domain}/PostRepository.java (64%) rename src/main/java/com/team20/t4/post/{ => dto}/PostResponseDto.java (89%) rename src/main/java/com/team20/t4/post/{ => dto}/PostSaveRequestDto.java (87%) rename src/main/java/com/team20/t4/post/{ => dto}/PostSaveRequestVo.java (93%) rename src/main/java/com/team20/t4/post/{ => dto}/PostUpdateRequestDto.java (92%) diff --git a/src/main/java/com/team20/t4/member/domain/Member.java b/src/main/java/com/team20/t4/member/domain/Member.java index a909be1..1c92a52 100644 --- a/src/main/java/com/team20/t4/member/domain/Member.java +++ b/src/main/java/com/team20/t4/member/domain/Member.java @@ -1,8 +1,7 @@ package com.team20.t4.member.domain; import com.team20.t4.common.entity.BaseTimeEntity; -import com.team20.t4.plan.RegisterHistory; -import com.team20.t4.post.Post; +import com.team20.t4.post.domain.Post; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; diff --git a/src/main/java/com/team20/t4/plan/PlanController.java b/src/main/java/com/team20/t4/plan/PlanController.java index cfe3814..80cb6d5 100644 --- a/src/main/java/com/team20/t4/plan/PlanController.java +++ b/src/main/java/com/team20/t4/plan/PlanController.java @@ -1,5 +1,11 @@ package com.team20.t4.plan; +import com.team20.t4.plan.domain.Progress; +import com.team20.t4.plan.domain.State; +import com.team20.t4.plan.dto.AppointmentPost; +import com.team20.t4.plan.dto.AppointmentTimeVO; +import com.team20.t4.plan.dto.PlanUpdateRequestDto; +import com.team20.t4.plan.dto.RegisterHistorySaveRequestDto; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; diff --git a/src/main/java/com/team20/t4/plan/PlanService.java b/src/main/java/com/team20/t4/plan/PlanService.java index a5af667..a82abb9 100644 --- a/src/main/java/com/team20/t4/plan/PlanService.java +++ b/src/main/java/com/team20/t4/plan/PlanService.java @@ -4,6 +4,8 @@ import com.team20.t4.common.exception.RequestException; import com.team20.t4.member.domain.Member; import com.team20.t4.member.domain.MemberRepository; +import com.team20.t4.plan.domain.*; +import com.team20.t4.plan.dto.*; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; diff --git a/src/main/java/com/team20/t4/plan/FoodType.java b/src/main/java/com/team20/t4/plan/domain/FoodType.java similarity index 86% rename from src/main/java/com/team20/t4/plan/FoodType.java rename to src/main/java/com/team20/t4/plan/domain/FoodType.java index bb0cd35..cdacfac 100644 --- a/src/main/java/com/team20/t4/plan/FoodType.java +++ b/src/main/java/com/team20/t4/plan/domain/FoodType.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/src/main/java/com/team20/t4/plan/Gu.java b/src/main/java/com/team20/t4/plan/domain/Gu.java similarity index 92% rename from src/main/java/com/team20/t4/plan/Gu.java rename to src/main/java/com/team20/t4/plan/domain/Gu.java index e9a67af..eb72d02 100644 --- a/src/main/java/com/team20/t4/plan/Gu.java +++ b/src/main/java/com/team20/t4/plan/domain/Gu.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import lombok.AllArgsConstructor; diff --git a/src/main/java/com/team20/t4/plan/Location.java b/src/main/java/com/team20/t4/plan/domain/Location.java similarity index 73% rename from src/main/java/com/team20/t4/plan/Location.java rename to src/main/java/com/team20/t4/plan/domain/Location.java index 0a79b2e..f6bbe8a 100644 --- a/src/main/java/com/team20/t4/plan/Location.java +++ b/src/main/java/com/team20/t4/plan/domain/Location.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import javax.persistence.Embeddable; diff --git a/src/main/java/com/team20/t4/plan/Plan.java b/src/main/java/com/team20/t4/plan/domain/Plan.java similarity index 96% rename from src/main/java/com/team20/t4/plan/Plan.java rename to src/main/java/com/team20/t4/plan/domain/Plan.java index fe1a9d2..3f913f8 100644 --- a/src/main/java/com/team20/t4/plan/Plan.java +++ b/src/main/java/com/team20/t4/plan/domain/Plan.java @@ -1,7 +1,7 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import com.team20.t4.member.domain.Member; -import com.team20.t4.post.Post; +import com.team20.t4.post.domain.Post; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/src/main/java/com/team20/t4/plan/PlanRepository.java b/src/main/java/com/team20/t4/plan/domain/PlanRepository.java similarity index 64% rename from src/main/java/com/team20/t4/plan/PlanRepository.java rename to src/main/java/com/team20/t4/plan/domain/PlanRepository.java index 0268795..b3e3e6f 100644 --- a/src/main/java/com/team20/t4/plan/PlanRepository.java +++ b/src/main/java/com/team20/t4/plan/domain/PlanRepository.java @@ -1,6 +1,7 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; +import com.team20.t4.plan.domain.Plan; import org.springframework.data.jpa.repository.JpaRepository; public interface PlanRepository extends JpaRepository { diff --git a/src/main/java/com/team20/t4/plan/Progress.java b/src/main/java/com/team20/t4/plan/domain/Progress.java similarity index 86% rename from src/main/java/com/team20/t4/plan/Progress.java rename to src/main/java/com/team20/t4/plan/domain/Progress.java index bc63c87..f705ae7 100644 --- a/src/main/java/com/team20/t4/plan/Progress.java +++ b/src/main/java/com/team20/t4/plan/domain/Progress.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import lombok.AllArgsConstructor; diff --git a/src/main/java/com/team20/t4/plan/RegisterHistory.java b/src/main/java/com/team20/t4/plan/domain/RegisterHistory.java similarity index 96% rename from src/main/java/com/team20/t4/plan/RegisterHistory.java rename to src/main/java/com/team20/t4/plan/domain/RegisterHistory.java index ed4ca3c..4b34e81 100644 --- a/src/main/java/com/team20/t4/plan/RegisterHistory.java +++ b/src/main/java/com/team20/t4/plan/domain/RegisterHistory.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import com.team20.t4.common.entity.BaseTimeEntity; import com.team20.t4.member.domain.Member; diff --git a/src/main/java/com/team20/t4/plan/RegisterHistoryRepository.java b/src/main/java/com/team20/t4/plan/domain/RegisterHistoryRepository.java similarity index 76% rename from src/main/java/com/team20/t4/plan/RegisterHistoryRepository.java rename to src/main/java/com/team20/t4/plan/domain/RegisterHistoryRepository.java index a0d7e95..064aa6d 100644 --- a/src/main/java/com/team20/t4/plan/RegisterHistoryRepository.java +++ b/src/main/java/com/team20/t4/plan/domain/RegisterHistoryRepository.java @@ -1,6 +1,7 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import com.team20.t4.member.domain.Member; +import com.team20.t4.plan.domain.RegisterHistory; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; @@ -9,6 +10,6 @@ public interface RegisterHistoryRepository extends JpaRepository { - @Query("SELECT h FROM RegisterHistory h where h.applicant = :applicant and h.state = com.team20.t4.plan.State.PERMITTED") + @Query("SELECT h FROM RegisterHistory h where h.applicant = :applicant and h.state = com.team20.t4.plan.domain.State.PERMITTED") List readRegisterHistoriesByMember(@Param("applicant") Member applicant); } diff --git a/src/main/java/com/team20/t4/plan/State.java b/src/main/java/com/team20/t4/plan/domain/State.java similarity index 85% rename from src/main/java/com/team20/t4/plan/State.java rename to src/main/java/com/team20/t4/plan/domain/State.java index 157dfa9..315f073 100644 --- a/src/main/java/com/team20/t4/plan/State.java +++ b/src/main/java/com/team20/t4/plan/domain/State.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.domain; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/src/main/java/com/team20/t4/plan/AppointmentPost.java b/src/main/java/com/team20/t4/plan/dto/AppointmentPost.java similarity index 65% rename from src/main/java/com/team20/t4/plan/AppointmentPost.java rename to src/main/java/com/team20/t4/plan/dto/AppointmentPost.java index 677c81a..cc5351b 100644 --- a/src/main/java/com/team20/t4/plan/AppointmentPost.java +++ b/src/main/java/com/team20/t4/plan/dto/AppointmentPost.java @@ -1,8 +1,7 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; +import com.team20.t4.plan.domain.RegisterHistory; import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.NoArgsConstructor; @AllArgsConstructor public class AppointmentPost { diff --git a/src/main/java/com/team20/t4/plan/AppointmentTimeVO.java b/src/main/java/com/team20/t4/plan/dto/AppointmentTimeVO.java similarity index 89% rename from src/main/java/com/team20/t4/plan/AppointmentTimeVO.java rename to src/main/java/com/team20/t4/plan/dto/AppointmentTimeVO.java index 95d0f3b..4645440 100644 --- a/src/main/java/com/team20/t4/plan/AppointmentTimeVO.java +++ b/src/main/java/com/team20/t4/plan/dto/AppointmentTimeVO.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Getter; diff --git a/src/main/java/com/team20/t4/plan/PlanInfoResponseDto.java b/src/main/java/com/team20/t4/plan/dto/PlanInfoResponseDto.java similarity index 90% rename from src/main/java/com/team20/t4/plan/PlanInfoResponseDto.java rename to src/main/java/com/team20/t4/plan/dto/PlanInfoResponseDto.java index 02bb771..c9a8ab0 100644 --- a/src/main/java/com/team20/t4/plan/PlanInfoResponseDto.java +++ b/src/main/java/com/team20/t4/plan/dto/PlanInfoResponseDto.java @@ -1,7 +1,10 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; import com.team20.t4.member.domain.Member; +import com.team20.t4.plan.domain.FoodType; +import com.team20.t4.plan.domain.Location; +import com.team20.t4.plan.domain.Plan; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/src/main/java/com/team20/t4/plan/PlanSaveRequestDto.java b/src/main/java/com/team20/t4/plan/dto/PlanSaveRequestDto.java similarity index 87% rename from src/main/java/com/team20/t4/plan/PlanSaveRequestDto.java rename to src/main/java/com/team20/t4/plan/dto/PlanSaveRequestDto.java index 22308d6..7811353 100644 --- a/src/main/java/com/team20/t4/plan/PlanSaveRequestDto.java +++ b/src/main/java/com/team20/t4/plan/dto/PlanSaveRequestDto.java @@ -1,8 +1,11 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer; -import com.team20.t4.member.domain.Member; +import com.team20.t4.plan.domain.FoodType; +import com.team20.t4.plan.domain.Location; +import com.team20.t4.plan.domain.Plan; +import com.team20.t4.plan.domain.Progress; import lombok.Builder; import lombok.NoArgsConstructor; import org.springframework.format.annotation.DateTimeFormat; diff --git a/src/main/java/com/team20/t4/plan/PlanUpdateRequestDto.java b/src/main/java/com/team20/t4/plan/dto/PlanUpdateRequestDto.java similarity index 85% rename from src/main/java/com/team20/t4/plan/PlanUpdateRequestDto.java rename to src/main/java/com/team20/t4/plan/dto/PlanUpdateRequestDto.java index 7775246..7768b7f 100644 --- a/src/main/java/com/team20/t4/plan/PlanUpdateRequestDto.java +++ b/src/main/java/com/team20/t4/plan/dto/PlanUpdateRequestDto.java @@ -1,6 +1,9 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; -import com.team20.t4.member.domain.Member; +import com.team20.t4.plan.domain.FoodType; +import com.team20.t4.plan.domain.Location; +import com.team20.t4.plan.domain.Plan; +import com.team20.t4.plan.domain.Progress; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/src/main/java/com/team20/t4/plan/RegisterHistoryResponseDto.java b/src/main/java/com/team20/t4/plan/dto/RegisterHistoryResponseDto.java similarity index 58% rename from src/main/java/com/team20/t4/plan/RegisterHistoryResponseDto.java rename to src/main/java/com/team20/t4/plan/dto/RegisterHistoryResponseDto.java index bf35da5..7259a9d 100644 --- a/src/main/java/com/team20/t4/plan/RegisterHistoryResponseDto.java +++ b/src/main/java/com/team20/t4/plan/dto/RegisterHistoryResponseDto.java @@ -1,4 +1,4 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; public class RegisterHistoryResponseDto { } diff --git a/src/main/java/com/team20/t4/plan/RegisterHistorySaveRequestDto.java b/src/main/java/com/team20/t4/plan/dto/RegisterHistorySaveRequestDto.java similarity index 76% rename from src/main/java/com/team20/t4/plan/RegisterHistorySaveRequestDto.java rename to src/main/java/com/team20/t4/plan/dto/RegisterHistorySaveRequestDto.java index 057e48a..9ddff5a 100644 --- a/src/main/java/com/team20/t4/plan/RegisterHistorySaveRequestDto.java +++ b/src/main/java/com/team20/t4/plan/dto/RegisterHistorySaveRequestDto.java @@ -1,6 +1,7 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; import com.team20.t4.member.domain.Member; +import com.team20.t4.plan.domain.Plan; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/src/main/java/com/team20/t4/plan/RegisterHistoryUpdateDto.java b/src/main/java/com/team20/t4/plan/dto/RegisterHistoryUpdateDto.java similarity index 80% rename from src/main/java/com/team20/t4/plan/RegisterHistoryUpdateDto.java rename to src/main/java/com/team20/t4/plan/dto/RegisterHistoryUpdateDto.java index d61d352..85f1ee2 100644 --- a/src/main/java/com/team20/t4/plan/RegisterHistoryUpdateDto.java +++ b/src/main/java/com/team20/t4/plan/dto/RegisterHistoryUpdateDto.java @@ -1,6 +1,9 @@ -package com.team20.t4.plan; +package com.team20.t4.plan.dto; import com.team20.t4.member.domain.Member; +import com.team20.t4.plan.domain.Plan; +import com.team20.t4.plan.domain.RegisterHistory; +import com.team20.t4.plan.domain.State; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/src/main/java/com/team20/t4/post/PostController.java b/src/main/java/com/team20/t4/post/PostController.java index 060d0f6..be8c417 100644 --- a/src/main/java/com/team20/t4/post/PostController.java +++ b/src/main/java/com/team20/t4/post/PostController.java @@ -1,6 +1,9 @@ package com.team20.t4.post; import com.team20.t4.common.responseFormat.OnlyResponseString; +import com.team20.t4.post.dto.PostResponseDto; +import com.team20.t4.post.dto.PostSaveRequestDto; +import com.team20.t4.post.dto.PostUpdateRequestDto; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; diff --git a/src/main/java/com/team20/t4/post/PostService.java b/src/main/java/com/team20/t4/post/PostService.java index 0b8e822..481dc3a 100644 --- a/src/main/java/com/team20/t4/post/PostService.java +++ b/src/main/java/com/team20/t4/post/PostService.java @@ -3,6 +3,12 @@ import com.team20.t4.common.exception.RequestErrorCode; import com.team20.t4.common.exception.RequestException; import com.team20.t4.member.MemberService; +import com.team20.t4.post.domain.Post; +import com.team20.t4.post.domain.PostRepository; +import com.team20.t4.post.dto.PostResponseDto; +import com.team20.t4.post.dto.PostSaveRequestDto; +import com.team20.t4.post.dto.PostSaveRequestVo; +import com.team20.t4.post.dto.PostUpdateRequestDto; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/src/main/java/com/team20/t4/post/Post.java b/src/main/java/com/team20/t4/post/domain/Post.java similarity index 88% rename from src/main/java/com/team20/t4/post/Post.java rename to src/main/java/com/team20/t4/post/domain/Post.java index 1d1a68f..88f1c16 100644 --- a/src/main/java/com/team20/t4/post/Post.java +++ b/src/main/java/com/team20/t4/post/domain/Post.java @@ -1,13 +1,12 @@ -package com.team20.t4.post; +package com.team20.t4.post.domain; import com.team20.t4.common.entity.BaseTimeEntity; import com.team20.t4.member.domain.Member; -import com.team20.t4.plan.Plan; +import com.team20.t4.plan.domain.Plan; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -import org.hibernate.engine.internal.Cascade; import javax.persistence.*; diff --git a/src/main/java/com/team20/t4/post/PostRepository.java b/src/main/java/com/team20/t4/post/domain/PostRepository.java similarity index 64% rename from src/main/java/com/team20/t4/post/PostRepository.java rename to src/main/java/com/team20/t4/post/domain/PostRepository.java index 3313e67..5003fc5 100644 --- a/src/main/java/com/team20/t4/post/PostRepository.java +++ b/src/main/java/com/team20/t4/post/domain/PostRepository.java @@ -1,5 +1,6 @@ -package com.team20.t4.post; +package com.team20.t4.post.domain; +import com.team20.t4.post.domain.Post; import org.springframework.data.jpa.repository.JpaRepository; public interface PostRepository extends JpaRepository { diff --git a/src/main/java/com/team20/t4/post/PostResponseDto.java b/src/main/java/com/team20/t4/post/dto/PostResponseDto.java similarity index 89% rename from src/main/java/com/team20/t4/post/PostResponseDto.java rename to src/main/java/com/team20/t4/post/dto/PostResponseDto.java index d1e8ff5..30bc4aa 100644 --- a/src/main/java/com/team20/t4/post/PostResponseDto.java +++ b/src/main/java/com/team20/t4/post/dto/PostResponseDto.java @@ -1,5 +1,6 @@ -package com.team20.t4.post; +package com.team20.t4.post.dto; +import com.team20.t4.post.domain.Post; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; diff --git a/src/main/java/com/team20/t4/post/PostSaveRequestDto.java b/src/main/java/com/team20/t4/post/dto/PostSaveRequestDto.java similarity index 87% rename from src/main/java/com/team20/t4/post/PostSaveRequestDto.java rename to src/main/java/com/team20/t4/post/dto/PostSaveRequestDto.java index 60773a3..5026af2 100644 --- a/src/main/java/com/team20/t4/post/PostSaveRequestDto.java +++ b/src/main/java/com/team20/t4/post/dto/PostSaveRequestDto.java @@ -1,6 +1,6 @@ -package com.team20.t4.post; +package com.team20.t4.post.dto; -import com.team20.t4.plan.PlanSaveRequestDto; +import com.team20.t4.plan.dto.PlanSaveRequestDto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/src/main/java/com/team20/t4/post/PostSaveRequestVo.java b/src/main/java/com/team20/t4/post/dto/PostSaveRequestVo.java similarity index 93% rename from src/main/java/com/team20/t4/post/PostSaveRequestVo.java rename to src/main/java/com/team20/t4/post/dto/PostSaveRequestVo.java index 336690b..0312952 100644 --- a/src/main/java/com/team20/t4/post/PostSaveRequestVo.java +++ b/src/main/java/com/team20/t4/post/dto/PostSaveRequestVo.java @@ -1,6 +1,7 @@ -package com.team20.t4.post; +package com.team20.t4.post.dto; import com.team20.t4.member.domain.Member; +import com.team20.t4.post.domain.Post; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.NoArgsConstructor; diff --git a/src/main/java/com/team20/t4/post/PostUpdateRequestDto.java b/src/main/java/com/team20/t4/post/dto/PostUpdateRequestDto.java similarity index 92% rename from src/main/java/com/team20/t4/post/PostUpdateRequestDto.java rename to src/main/java/com/team20/t4/post/dto/PostUpdateRequestDto.java index 3d02ea5..e211257 100644 --- a/src/main/java/com/team20/t4/post/PostUpdateRequestDto.java +++ b/src/main/java/com/team20/t4/post/dto/PostUpdateRequestDto.java @@ -1,5 +1,6 @@ -package com.team20.t4.post; +package com.team20.t4.post.dto; +import com.team20.t4.post.domain.Post; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor;