From 5ae055a397b28f5d65e8282bdd425569c43ecb8f Mon Sep 17 00:00:00 2001 From: Seoyoung2222 Date: Mon, 25 Nov 2024 12:06:33 +0900 Subject: [PATCH] =?UTF-8?q?BE:=20[refactor]=20=ED=8C=A8=ED=82=A4=EC=A7=80?= =?UTF-8?q?=20=EA=B5=AC=EC=A1=B0=20=EB=B3=80=EA=B2=BD=20#83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../R2R/domain/crew/board/entity/CrewBoard.java | 5 +++++ .../R2R/domain/crew/{ => common}/entity/Crew.java | 3 ++- .../R2R/domain/crew/common/entity/CrewRole.java | 5 +++++ .../R2R/domain/crew/{ => common}/entity/CrewUser.java | 2 +- .../RunningMachines/R2R/domain/crew/entity/CrewBoard.java | 5 ----- .../RunningMachines/R2R/domain/crew/entity/CrewRole.java | 5 ----- .../R2R/domain/crew/{ => post}/entity/CrewPost.java | 4 +++- .../R2R/domain/crew/{ => post}/entity/CrewPostComment.java | 2 +- .../R2R/domain/crew/{ => post}/entity/CrewPostImage.java | 2 +- .../java/RunningMachines/R2R/domain/user/entity/User.java | 6 +++--- 10 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 src/backend/src/main/java/RunningMachines/R2R/domain/crew/board/entity/CrewBoard.java rename src/backend/src/main/java/RunningMachines/R2R/domain/crew/{ => common}/entity/Crew.java (85%) create mode 100644 src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewRole.java rename src/backend/src/main/java/RunningMachines/R2R/domain/crew/{ => common}/entity/CrewUser.java (92%) delete mode 100644 src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewBoard.java delete mode 100644 src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewRole.java rename src/backend/src/main/java/RunningMachines/R2R/domain/crew/{ => post}/entity/CrewPost.java (84%) rename src/backend/src/main/java/RunningMachines/R2R/domain/crew/{ => post}/entity/CrewPostComment.java (92%) rename src/backend/src/main/java/RunningMachines/R2R/domain/crew/{ => post}/entity/CrewPostImage.java (90%) diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/board/entity/CrewBoard.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/board/entity/CrewBoard.java new file mode 100644 index 0000000..e465699 --- /dev/null +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/board/entity/CrewBoard.java @@ -0,0 +1,5 @@ +package RunningMachines.R2R.domain.crew.board.entity; + +public enum CrewBoard { + NOTICE, GALLERY +} diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/Crew.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/Crew.java similarity index 85% rename from src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/Crew.java rename to src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/Crew.java index d5bfa29..f0c7522 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/Crew.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/Crew.java @@ -1,5 +1,6 @@ -package RunningMachines.R2R.domain.crew.entity; +package RunningMachines.R2R.domain.crew.common.entity; +import RunningMachines.R2R.domain.crew.post.entity.CrewPost; import RunningMachines.R2R.global.util.BaseEntity; import jakarta.persistence.*; import lombok.*; diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewRole.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewRole.java new file mode 100644 index 0000000..054fe50 --- /dev/null +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewRole.java @@ -0,0 +1,5 @@ +package RunningMachines.R2R.domain.crew.common.entity; + +public enum CrewRole { + LEADER, MEMBER +} diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewUser.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewUser.java similarity index 92% rename from src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewUser.java rename to src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewUser.java index dca90cf..76baefe 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewUser.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewUser.java @@ -1,4 +1,4 @@ -package RunningMachines.R2R.domain.crew.entity; +package RunningMachines.R2R.domain.crew.common.entity; import RunningMachines.R2R.domain.user.entity.User; import RunningMachines.R2R.global.util.BaseEntity; diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewBoard.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewBoard.java deleted file mode 100644 index c5ef140..0000000 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewBoard.java +++ /dev/null @@ -1,5 +0,0 @@ -package RunningMachines.R2R.domain.crew.entity; - -public enum CrewBoard { - NOTICE, GALLERY -} diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewRole.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewRole.java deleted file mode 100644 index 3273d21..0000000 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewRole.java +++ /dev/null @@ -1,5 +0,0 @@ -package RunningMachines.R2R.domain.crew.entity; - -public enum CrewRole { - LEADER, MEMBER -} diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPost.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPost.java similarity index 84% rename from src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPost.java rename to src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPost.java index fa16920..428f9e4 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPost.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPost.java @@ -1,5 +1,7 @@ -package RunningMachines.R2R.domain.crew.entity; +package RunningMachines.R2R.domain.crew.post.entity; +import RunningMachines.R2R.domain.crew.common.entity.Crew; +import RunningMachines.R2R.domain.crew.board.entity.CrewBoard; import RunningMachines.R2R.domain.user.entity.User; import RunningMachines.R2R.global.util.BaseEntity; import jakarta.persistence.*; diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPostComment.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPostComment.java similarity index 92% rename from src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPostComment.java rename to src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPostComment.java index 22bbb54..69f854e 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPostComment.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPostComment.java @@ -1,4 +1,4 @@ -package RunningMachines.R2R.domain.crew.entity; +package RunningMachines.R2R.domain.crew.post.entity; import RunningMachines.R2R.domain.user.entity.User; import RunningMachines.R2R.global.util.BaseEntity; diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPostImage.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPostImage.java similarity index 90% rename from src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPostImage.java rename to src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPostImage.java index b5b140c..dc8257f 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/entity/CrewPostImage.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/entity/CrewPostImage.java @@ -1,4 +1,4 @@ -package RunningMachines.R2R.domain.crew.entity; +package RunningMachines.R2R.domain.crew.post.entity; import RunningMachines.R2R.global.util.BaseEntity; import jakarta.persistence.*; diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/user/entity/User.java b/src/backend/src/main/java/RunningMachines/R2R/domain/user/entity/User.java index 206695a..3457cf5 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/user/entity/User.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/user/entity/User.java @@ -6,9 +6,9 @@ import RunningMachines.R2R.domain.course.entity.CourseLike; import RunningMachines.R2R.domain.course.entity.Review; import RunningMachines.R2R.domain.course.entity.UserCourse; -import RunningMachines.R2R.domain.crew.entity.CrewPost; -import RunningMachines.R2R.domain.crew.entity.CrewPostComment; -import RunningMachines.R2R.domain.crew.entity.CrewUser; +import RunningMachines.R2R.domain.crew.post.entity.CrewPost; +import RunningMachines.R2R.domain.crew.post.entity.CrewPostComment; +import RunningMachines.R2R.domain.crew.common.entity.CrewUser; import RunningMachines.R2R.global.util.BaseEntity; import jakarta.persistence.*; import lombok.*;