From b5025f41a1892795ebc574a44a1dafe6ecf58960 Mon Sep 17 00:00:00 2001 From: jisu <98259433+jisu-jeong0@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:26:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Refactor:=20idea=20=EA=B4=80=EB=A0=A8=20dto?= =?UTF-8?q?=20=ED=8C=A8=ED=82=A4=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ideac/domain/idea_post/application/IdeaPostService.java | 4 +++- .../domain/idea_post/dto/{ => request}/RegisterIdeaReq.java | 2 +- .../domain/idea_post/dto/{ => request}/UpdateIdeaReq.java | 2 +- .../domain/idea_post/dto/{ => response}/GetAllIdeasRes.java | 2 +- .../domain/idea_post/dto/{ => response}/GetDetailIdeaRes.java | 2 +- .../domain/idea_post/presentation/IdeaPostController.java | 4 ++-- 6 files changed, 9 insertions(+), 7 deletions(-) rename ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/{ => request}/RegisterIdeaReq.java (92%) rename ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/{ => request}/UpdateIdeaReq.java (92%) rename ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/{ => response}/GetAllIdeasRes.java (90%) rename ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/{ => response}/GetDetailIdeaRes.java (88%) diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/application/IdeaPostService.java b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/application/IdeaPostService.java index 8e5bba0..28aced8 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/application/IdeaPostService.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/application/IdeaPostService.java @@ -1,7 +1,9 @@ package depth.main.ideac.domain.idea_post.application; import depth.main.ideac.domain.idea_post.IdeaPost; -import depth.main.ideac.domain.idea_post.dto.*; +import depth.main.ideac.domain.idea_post.dto.request.*; +import depth.main.ideac.domain.idea_post.dto.response.GetAllIdeasRes; +import depth.main.ideac.domain.idea_post.dto.response.GetDetailIdeaRes; import depth.main.ideac.domain.idea_post.repository.IdeaPostRepository; import depth.main.ideac.domain.user.domain.Role; import depth.main.ideac.domain.user.domain.User; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/RegisterIdeaReq.java b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/request/RegisterIdeaReq.java similarity index 92% rename from ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/RegisterIdeaReq.java rename to ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/request/RegisterIdeaReq.java index d37beab..738ee46 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/RegisterIdeaReq.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/request/RegisterIdeaReq.java @@ -1,4 +1,4 @@ -package depth.main.ideac.domain.idea_post.dto; +package depth.main.ideac.domain.idea_post.dto.request; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/UpdateIdeaReq.java b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/request/UpdateIdeaReq.java similarity index 92% rename from ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/UpdateIdeaReq.java rename to ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/request/UpdateIdeaReq.java index 5bbfa4a..fe02dfd 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/UpdateIdeaReq.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/request/UpdateIdeaReq.java @@ -1,4 +1,4 @@ -package depth.main.ideac.domain.idea_post.dto; +package depth.main.ideac.domain.idea_post.dto.request; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/GetAllIdeasRes.java b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/response/GetAllIdeasRes.java similarity index 90% rename from ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/GetAllIdeasRes.java rename to ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/response/GetAllIdeasRes.java index 31b8af6..23e7ef9 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/GetAllIdeasRes.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/response/GetAllIdeasRes.java @@ -1,4 +1,4 @@ -package depth.main.ideac.domain.idea_post.dto; +package depth.main.ideac.domain.idea_post.dto.response; import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/GetDetailIdeaRes.java b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/response/GetDetailIdeaRes.java similarity index 88% rename from ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/GetDetailIdeaRes.java rename to ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/response/GetDetailIdeaRes.java index f379d19..5880833 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/GetDetailIdeaRes.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/dto/response/GetDetailIdeaRes.java @@ -1,4 +1,4 @@ -package depth.main.ideac.domain.idea_post.dto; +package depth.main.ideac.domain.idea_post.dto.response; import lombok.Builder; import lombok.Getter; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/presentation/IdeaPostController.java b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/presentation/IdeaPostController.java index b6b77b4..e48f72c 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/presentation/IdeaPostController.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/idea_post/presentation/IdeaPostController.java @@ -1,8 +1,8 @@ package depth.main.ideac.domain.idea_post.presentation; import depth.main.ideac.domain.idea_post.application.IdeaPostService; -import depth.main.ideac.domain.idea_post.dto.RegisterIdeaReq; -import depth.main.ideac.domain.idea_post.dto.UpdateIdeaReq; +import depth.main.ideac.domain.idea_post.dto.request.RegisterIdeaReq; +import depth.main.ideac.domain.idea_post.dto.request.UpdateIdeaReq; import depth.main.ideac.global.config.security.token.CurrentUser; import depth.main.ideac.global.config.security.token.UserPrincipal; import depth.main.ideac.global.payload.ErrorResponse; From 8e351b8ed5f5b191648866a9408e779e14494280 Mon Sep 17 00:00:00 2001 From: jisu <98259433+jisu-jeong0@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:36:43 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Refactor:=20=EB=AF=B8=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=EC=96=B4=EB=85=B8=ED=85=8C=EC=9D=B4=EC=85=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IDEA-CAMPUS-Server | 1 - Idea | 1 - .../main/ideac/domain/club_post/dto/request/ClubPostReq.java | 1 - .../ideac/domain/club_post/dto/request/UpdateClubPostReq.java | 1 - .../ideac/domain/club_post/dto/response/ClubPostDetailRes.java | 1 - 5 files changed, 5 deletions(-) delete mode 160000 IDEA-CAMPUS-Server delete mode 160000 Idea diff --git a/IDEA-CAMPUS-Server b/IDEA-CAMPUS-Server deleted file mode 160000 index 0b7dac2..0000000 --- a/IDEA-CAMPUS-Server +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0b7dac27d9e2deacf73e9b80bcc14c76704799bc diff --git a/Idea b/Idea deleted file mode 160000 index d257a6f..0000000 --- a/Idea +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d257a6f432116443a019fb13b555a12b7c374375 diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/ClubPostReq.java b/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/ClubPostReq.java index 3105dd1..c17d760 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/ClubPostReq.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/ClubPostReq.java @@ -3,7 +3,6 @@ import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import lombok.AllArgsConstructor; -import lombok.Data; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/UpdateClubPostReq.java b/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/UpdateClubPostReq.java index 4912445..8416908 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/UpdateClubPostReq.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/request/UpdateClubPostReq.java @@ -3,7 +3,6 @@ import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import lombok.AllArgsConstructor; -import lombok.Data; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/response/ClubPostDetailRes.java b/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/response/ClubPostDetailRes.java index 0af6fe2..9578a57 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/response/ClubPostDetailRes.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/club_post/dto/response/ClubPostDetailRes.java @@ -1,7 +1,6 @@ package depth.main.ideac.domain.club_post.dto.response; import lombok.Builder; -import lombok.Data; import lombok.Getter; import java.time.LocalDateTime;