diff --git a/src/main/java/com/linkode/api_server/controller/StudyroomController.java b/src/main/java/com/linkode/api_server/controller/StudyroomController.java index 3f164024..d7a6052d 100644 --- a/src/main/java/com/linkode/api_server/controller/StudyroomController.java +++ b/src/main/java/com/linkode/api_server/controller/StudyroomController.java @@ -2,8 +2,8 @@ import com.linkode.api_server.common.response.BaseResponse; import com.linkode.api_server.common.response.status.BaseExceptionResponseStatus; -import com.linkode.api_server.dto.CreateStudyroomRequest; -import com.linkode.api_server.dto.CreateStudyroomResponse; +import com.linkode.api_server.dto.studyroom.CreateStudyroomRequest; +import com.linkode.api_server.dto.studyroom.CreateStudyroomResponse; import com.linkode.api_server.service.StudyroomService; import com.linkode.api_server.util.JwtProvider; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/com/linkode/api_server/dto/CreateStudyroomRequest.java b/src/main/java/com/linkode/api_server/dto/studyroom/CreateStudyroomRequest.java similarity index 87% rename from src/main/java/com/linkode/api_server/dto/CreateStudyroomRequest.java rename to src/main/java/com/linkode/api_server/dto/studyroom/CreateStudyroomRequest.java index bbcc377c..2eae378e 100644 --- a/src/main/java/com/linkode/api_server/dto/CreateStudyroomRequest.java +++ b/src/main/java/com/linkode/api_server/dto/studyroom/CreateStudyroomRequest.java @@ -1,4 +1,4 @@ -package com.linkode.api_server.dto; +package com.linkode.api_server.dto.studyroom; import jakarta.persistence.Column; import lombok.AllArgsConstructor; diff --git a/src/main/java/com/linkode/api_server/dto/CreateStudyroomResponse.java b/src/main/java/com/linkode/api_server/dto/studyroom/CreateStudyroomResponse.java similarity index 87% rename from src/main/java/com/linkode/api_server/dto/CreateStudyroomResponse.java rename to src/main/java/com/linkode/api_server/dto/studyroom/CreateStudyroomResponse.java index 1fd28240..3ddb2247 100644 --- a/src/main/java/com/linkode/api_server/dto/CreateStudyroomResponse.java +++ b/src/main/java/com/linkode/api_server/dto/studyroom/CreateStudyroomResponse.java @@ -1,4 +1,4 @@ -package com.linkode.api_server.dto; +package com.linkode.api_server.dto.studyroom; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/src/main/java/com/linkode/api_server/dto/JoinStudyroomRequest.java b/src/main/java/com/linkode/api_server/dto/studyroom/JoinStudyroomRequest.java similarity index 88% rename from src/main/java/com/linkode/api_server/dto/JoinStudyroomRequest.java rename to src/main/java/com/linkode/api_server/dto/studyroom/JoinStudyroomRequest.java index fa1ea132..b2fbc3a2 100644 --- a/src/main/java/com/linkode/api_server/dto/JoinStudyroomRequest.java +++ b/src/main/java/com/linkode/api_server/dto/studyroom/JoinStudyroomRequest.java @@ -1,4 +1,4 @@ -package com.linkode.api_server.dto; +package com.linkode.api_server.dto.studyroom; import com.linkode.api_server.domain.memberstudyroom.MemberRole; import lombok.AllArgsConstructor; diff --git a/src/main/java/com/linkode/api_server/service/StudyroomService.java b/src/main/java/com/linkode/api_server/service/StudyroomService.java index ae24fdbe..20a6aac6 100644 --- a/src/main/java/com/linkode/api_server/service/StudyroomService.java +++ b/src/main/java/com/linkode/api_server/service/StudyroomService.java @@ -5,7 +5,6 @@ import com.linkode.api_server.domain.memberstudyroom.MemberStudyroom; import com.linkode.api_server.repository.MemberstudyroomRepository; import com.linkode.api_server.repository.StudyroomRepository; -import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -13,17 +12,10 @@ import com.linkode.api_server.domain.Member; import com.linkode.api_server.domain.Studyroom; import com.linkode.api_server.domain.base.BaseStatus; -import com.linkode.api_server.domain.memberstudyroom.MemberRole; -import com.linkode.api_server.domain.memberstudyroom.MemberStudyroom; -import com.linkode.api_server.dto.CreateStudyroomRequest; -import com.linkode.api_server.dto.CreateStudyroomResponse; -import com.linkode.api_server.dto.JoinStudyroomRequest; +import com.linkode.api_server.dto.studyroom.CreateStudyroomRequest; +import com.linkode.api_server.dto.studyroom.CreateStudyroomResponse; +import com.linkode.api_server.dto.studyroom.JoinStudyroomRequest; import com.linkode.api_server.repository.MemberRepository; -import com.linkode.api_server.repository.MemberstudyroomRepository; -import com.linkode.api_server.repository.StudyroomRepository; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service