From 8764f407bff2435a119eb08d1705516a4422ad7f Mon Sep 17 00:00:00 2001 From: Jin Hyuk Date: Tue, 15 Oct 2024 16:37:40 +0900 Subject: [PATCH] =?UTF-8?q?rename:=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dangu/DanguApplication.java | 2 +- .../dangu/chatlog/Chatlog.java | 8 +++----- .../dangu/chatting/Chatting.java | 7 +++---- .../dangu/common/apiResponse/ApiResponse.java | 3 +-- .../dangu/common/apiResponse/CustomException.java | 2 +- .../dangu/common/apiResponse/ErrorCode.java | 2 +- .../dangu/common/apiResponse/ExceptionDto.java | 4 ++-- .../common/apiResponse/GlobalExceptionHandler.java | 2 +- .../controller/ParticipantController.java | 13 ++++++------- .../dangu/participant/domain/Participant.java | 6 +++--- .../participant/domain/ParticipantRepository.java | 5 ++--- .../participant/service/ParticipantService.java | 12 ++++++------ .../dangu/user/domain/User.java | 2 +- .../dangu/workspace/domain/Workspace.java | 4 ++-- .../dangu/workspace/domain/WorkspaceRepository.java | 4 +--- .../dangu/DanguApplicationTests.java | 2 +- 16 files changed, 35 insertions(+), 43 deletions(-) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/DanguApplication.java (91%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/chatlog/Chatlog.java (88%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/chatting/Chatting.java (86%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/common/apiResponse/ApiResponse.java (84%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/common/apiResponse/CustomException.java (83%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/common/apiResponse/ErrorCode.java (91%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/common/apiResponse/ExceptionDto.java (79%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/common/apiResponse/GlobalExceptionHandler.java (96%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/participant/controller/ParticipantController.java (68%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/participant/domain/Participant.java (87%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/participant/domain/ParticipantRepository.java (85%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/participant/service/ParticipantService.java (79%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/user/domain/User.java (91%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/workspace/domain/Workspace.java (90%) rename src/main/java/com/{hyunsolutiondemo => hyunsolution}/dangu/workspace/domain/WorkspaceRepository.java (80%) rename src/test/java/com/{hyunsolutiondemo => hyunsolution}/dangu/DanguApplicationTests.java (83%) diff --git a/src/main/java/com/hyunsolutiondemo/dangu/DanguApplication.java b/src/main/java/com/hyunsolution/dangu/DanguApplication.java similarity index 91% rename from src/main/java/com/hyunsolutiondemo/dangu/DanguApplication.java rename to src/main/java/com/hyunsolution/dangu/DanguApplication.java index 9674665..65dfaea 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/DanguApplication.java +++ b/src/main/java/com/hyunsolution/dangu/DanguApplication.java @@ -1,4 +1,4 @@ -package com.hyunsolutiondemo.dangu; +package com.hyunsolution.dangu; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/chatlog/Chatlog.java b/src/main/java/com/hyunsolution/dangu/chatlog/Chatlog.java similarity index 88% rename from src/main/java/com/hyunsolutiondemo/dangu/chatlog/Chatlog.java rename to src/main/java/com/hyunsolution/dangu/chatlog/Chatlog.java index f52723c..206a7f1 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/chatlog/Chatlog.java +++ b/src/main/java/com/hyunsolution/dangu/chatlog/Chatlog.java @@ -1,7 +1,7 @@ -package com.hyunsolutiondemo.dangu.chatlog; +package com.hyunsolution.dangu.chatlog; -import com.hyunsolutiondemo.dangu.user.User; -import com.hyunsolutiondemo.dangu.workspace.Workspace; +import com.hyunsolution.dangu.user.User; +import com.hyunsolution.dangu.workspace.Workspace; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; @@ -9,9 +9,7 @@ import org.hibernate.annotations.ColumnDefault; import javax.persistence.*; -import java.time.LocalDate; import java.time.LocalDateTime; -import java.util.Date; @Entity @Getter diff --git a/src/main/java/com/hyunsolutiondemo/dangu/chatting/Chatting.java b/src/main/java/com/hyunsolution/dangu/chatting/Chatting.java similarity index 86% rename from src/main/java/com/hyunsolutiondemo/dangu/chatting/Chatting.java rename to src/main/java/com/hyunsolution/dangu/chatting/Chatting.java index 05a60a9..700c5cd 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/chatting/Chatting.java +++ b/src/main/java/com/hyunsolution/dangu/chatting/Chatting.java @@ -1,12 +1,11 @@ -package com.hyunsolutiondemo.dangu.chatting; +package com.hyunsolution.dangu.chatting; -import com.hyunsolutiondemo.dangu.user.User; -import com.hyunsolutiondemo.dangu.workspace.Workspace; +import com.hyunsolution.dangu.user.User; +import com.hyunsolution.dangu.workspace.Workspace; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ApiResponse.java b/src/main/java/com/hyunsolution/dangu/common/apiResponse/ApiResponse.java similarity index 84% rename from src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ApiResponse.java rename to src/main/java/com/hyunsolution/dangu/common/apiResponse/ApiResponse.java index b62e572..fac8f24 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ApiResponse.java +++ b/src/main/java/com/hyunsolution/dangu/common/apiResponse/ApiResponse.java @@ -1,5 +1,4 @@ -package com.hyunsolutiondemo.dangu.common.apiResponse; -import com.hyunsolutiondemo.dangu.common.apiResponse.ErrorCode; +package com.hyunsolution.dangu.common.apiResponse; import com.fasterxml.jackson.annotation.JsonIgnore; import org.springframework.http.HttpStatus; import org.springframework.lang.Nullable; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/CustomException.java b/src/main/java/com/hyunsolution/dangu/common/apiResponse/CustomException.java similarity index 83% rename from src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/CustomException.java rename to src/main/java/com/hyunsolution/dangu/common/apiResponse/CustomException.java index ab47832..0798e67 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/CustomException.java +++ b/src/main/java/com/hyunsolution/dangu/common/apiResponse/CustomException.java @@ -1,4 +1,4 @@ -package com.hyunsolutiondemo.dangu.common.apiResponse; +package com.hyunsolution.dangu.common.apiResponse; import lombok.Getter; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ErrorCode.java b/src/main/java/com/hyunsolution/dangu/common/apiResponse/ErrorCode.java similarity index 91% rename from src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ErrorCode.java rename to src/main/java/com/hyunsolution/dangu/common/apiResponse/ErrorCode.java index b6a0bb8..3c86025 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ErrorCode.java +++ b/src/main/java/com/hyunsolution/dangu/common/apiResponse/ErrorCode.java @@ -1,4 +1,4 @@ -package com.hyunsolutiondemo.dangu.common.apiResponse; +package com.hyunsolution.dangu.common.apiResponse; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ExceptionDto.java b/src/main/java/com/hyunsolution/dangu/common/apiResponse/ExceptionDto.java similarity index 79% rename from src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ExceptionDto.java rename to src/main/java/com/hyunsolution/dangu/common/apiResponse/ExceptionDto.java index 6738c3b..ae1cca7 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/ExceptionDto.java +++ b/src/main/java/com/hyunsolution/dangu/common/apiResponse/ExceptionDto.java @@ -1,7 +1,7 @@ -package com.hyunsolutiondemo.dangu.common.apiResponse; +package com.hyunsolution.dangu.common.apiResponse; import lombok.Getter; -import com.hyunsolutiondemo.dangu.common.apiResponse.ErrorCode; + import javax.validation.constraints.NotNull; @Getter diff --git a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/GlobalExceptionHandler.java b/src/main/java/com/hyunsolution/dangu/common/apiResponse/GlobalExceptionHandler.java similarity index 96% rename from src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/GlobalExceptionHandler.java rename to src/main/java/com/hyunsolution/dangu/common/apiResponse/GlobalExceptionHandler.java index 6dbc5ca..0d3e392 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/common/apiResponse/GlobalExceptionHandler.java +++ b/src/main/java/com/hyunsolution/dangu/common/apiResponse/GlobalExceptionHandler.java @@ -1,4 +1,4 @@ -package com.hyunsolutiondemo.dangu.common.apiResponse; +package com.hyunsolution.dangu.common.apiResponse; import lombok.extern.slf4j.Slf4j; import org.springframework.web.HttpRequestMethodNotSupportedException; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/participant/controller/ParticipantController.java b/src/main/java/com/hyunsolution/dangu/participant/controller/ParticipantController.java similarity index 68% rename from src/main/java/com/hyunsolutiondemo/dangu/participant/controller/ParticipantController.java rename to src/main/java/com/hyunsolution/dangu/participant/controller/ParticipantController.java index 6546bc4..71b6ff2 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/participant/controller/ParticipantController.java +++ b/src/main/java/com/hyunsolution/dangu/participant/controller/ParticipantController.java @@ -1,12 +1,11 @@ -package com.hyunsolutiondemo.dangu.participant.controller; +package com.hyunsolution.dangu.participant.controller; -import com.hyunsolutiondemo.dangu.common.apiResponse.ApiResponse; -import com.hyunsolutiondemo.dangu.participant.domain.ParticipantRepository; -import com.hyunsolutiondemo.dangu.participant.service.ParticipantService; -import com.hyunsolutiondemo.dangu.user.domain.UserRepository; -import com.hyunsolutiondemo.dangu.workspace.domain.WorkspaceRepository; +import com.hyunsolution.dangu.common.apiResponse.ApiResponse; +import com.hyunsolution.dangu.participant.domain.ParticipantRepository; +import com.hyunsolution.dangu.participant.service.ParticipantService; +import com.hyunsolution.dangu.user.domain.UserRepository; +import com.hyunsolution.dangu.workspace.domain.WorkspaceRepository; import lombok.RequiredArgsConstructor; -import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestHeader; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/participant/domain/Participant.java b/src/main/java/com/hyunsolution/dangu/participant/domain/Participant.java similarity index 87% rename from src/main/java/com/hyunsolutiondemo/dangu/participant/domain/Participant.java rename to src/main/java/com/hyunsolution/dangu/participant/domain/Participant.java index bfa01f7..76050e0 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/participant/domain/Participant.java +++ b/src/main/java/com/hyunsolution/dangu/participant/domain/Participant.java @@ -1,7 +1,7 @@ -package com.hyunsolutiondemo.dangu.participant.domain; +package com.hyunsolution.dangu.participant.domain; -import com.hyunsolutiondemo.dangu.user.domain.User; -import com.hyunsolutiondemo.dangu.workspace.domain.Workspace; +import com.hyunsolution.dangu.user.domain.User; +import com.hyunsolution.dangu.workspace.domain.Workspace; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/participant/domain/ParticipantRepository.java b/src/main/java/com/hyunsolution/dangu/participant/domain/ParticipantRepository.java similarity index 85% rename from src/main/java/com/hyunsolutiondemo/dangu/participant/domain/ParticipantRepository.java rename to src/main/java/com/hyunsolution/dangu/participant/domain/ParticipantRepository.java index efc0749..33da4d6 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/participant/domain/ParticipantRepository.java +++ b/src/main/java/com/hyunsolution/dangu/participant/domain/ParticipantRepository.java @@ -1,8 +1,7 @@ -package com.hyunsolutiondemo.dangu.participant.domain; +package com.hyunsolution.dangu.participant.domain; -import com.hyunsolutiondemo.dangu.user.domain.User; +import com.hyunsolution.dangu.user.domain.User; import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/participant/service/ParticipantService.java b/src/main/java/com/hyunsolution/dangu/participant/service/ParticipantService.java similarity index 79% rename from src/main/java/com/hyunsolutiondemo/dangu/participant/service/ParticipantService.java rename to src/main/java/com/hyunsolution/dangu/participant/service/ParticipantService.java index 7896d37..0c19b39 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/participant/service/ParticipantService.java +++ b/src/main/java/com/hyunsolution/dangu/participant/service/ParticipantService.java @@ -1,10 +1,10 @@ -package com.hyunsolutiondemo.dangu.participant.service; +package com.hyunsolution.dangu.participant.service; -import com.hyunsolutiondemo.dangu.participant.domain.Participant; -import com.hyunsolutiondemo.dangu.participant.domain.ParticipantRepository; -import com.hyunsolutiondemo.dangu.user.domain.UserRepository; -import com.hyunsolutiondemo.dangu.workspace.domain.Workspace; -import com.hyunsolutiondemo.dangu.workspace.domain.WorkspaceRepository; +import com.hyunsolution.dangu.participant.domain.Participant; +import com.hyunsolution.dangu.participant.domain.ParticipantRepository; +import com.hyunsolution.dangu.user.domain.UserRepository; +import com.hyunsolution.dangu.workspace.domain.Workspace; +import com.hyunsolution.dangu.workspace.domain.WorkspaceRepository; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/user/domain/User.java b/src/main/java/com/hyunsolution/dangu/user/domain/User.java similarity index 91% rename from src/main/java/com/hyunsolutiondemo/dangu/user/domain/User.java rename to src/main/java/com/hyunsolution/dangu/user/domain/User.java index 6c205b9..29dc320 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/user/domain/User.java +++ b/src/main/java/com/hyunsolution/dangu/user/domain/User.java @@ -1,4 +1,4 @@ -package com.hyunsolutiondemo.dangu.user.domain; +package com.hyunsolution.dangu.user.domain; import lombok.AccessLevel; import lombok.Builder; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/workspace/domain/Workspace.java b/src/main/java/com/hyunsolution/dangu/workspace/domain/Workspace.java similarity index 90% rename from src/main/java/com/hyunsolutiondemo/dangu/workspace/domain/Workspace.java rename to src/main/java/com/hyunsolution/dangu/workspace/domain/Workspace.java index 73d72be..d49c7ec 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/workspace/domain/Workspace.java +++ b/src/main/java/com/hyunsolution/dangu/workspace/domain/Workspace.java @@ -1,6 +1,6 @@ -package com.hyunsolutiondemo.dangu.workspace.domain; +package com.hyunsolution.dangu.workspace.domain; -import com.hyunsolutiondemo.dangu.user.domain.User; +import com.hyunsolution.dangu.user.domain.User; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; diff --git a/src/main/java/com/hyunsolutiondemo/dangu/workspace/domain/WorkspaceRepository.java b/src/main/java/com/hyunsolution/dangu/workspace/domain/WorkspaceRepository.java similarity index 80% rename from src/main/java/com/hyunsolutiondemo/dangu/workspace/domain/WorkspaceRepository.java rename to src/main/java/com/hyunsolution/dangu/workspace/domain/WorkspaceRepository.java index 5abe9b6..c4a9082 100644 --- a/src/main/java/com/hyunsolutiondemo/dangu/workspace/domain/WorkspaceRepository.java +++ b/src/main/java/com/hyunsolution/dangu/workspace/domain/WorkspaceRepository.java @@ -1,10 +1,8 @@ -package com.hyunsolutiondemo.dangu.workspace.domain; +package com.hyunsolution.dangu.workspace.domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; -import java.util.Optional; - public interface WorkspaceRepository extends JpaRepository { @Query(value = "UPDATE Workspace w SET w.isMatched=true WHERE w.id=:workspaceId") diff --git a/src/test/java/com/hyunsolutiondemo/dangu/DanguApplicationTests.java b/src/test/java/com/hyunsolution/dangu/DanguApplicationTests.java similarity index 83% rename from src/test/java/com/hyunsolutiondemo/dangu/DanguApplicationTests.java rename to src/test/java/com/hyunsolution/dangu/DanguApplicationTests.java index 0e55754..356eb19 100644 --- a/src/test/java/com/hyunsolutiondemo/dangu/DanguApplicationTests.java +++ b/src/test/java/com/hyunsolution/dangu/DanguApplicationTests.java @@ -1,4 +1,4 @@ -package com.hyunsolutiondemo.dangu; +package com.hyunsolution.dangu; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest;