Skip to content

Commit 58038ee

Browse files
committed
refactor(community): community board/comment 폴더 구조 변경
1 parent 9a4c087 commit 58038ee

14 files changed

+31
-31
lines changed

src/main/java/com/somemore/community/repository/CommunityBoardJpaRepository.java renamed to src/main/java/com/somemore/community/repository/board/CommunityBoardJpaRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.community.repository;
1+
package com.somemore.community.repository.board;
22

33
import com.somemore.community.domain.CommunityBoard;
44
import org.springframework.data.jpa.repository.JpaRepository;

src/main/java/com/somemore/community/repository/CommunityBoardRepository.java renamed to src/main/java/com/somemore/community/repository/board/CommunityBoardRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.community.repository;
1+
package com.somemore.community.repository.board;
22

33
import com.somemore.community.domain.CommunityBoard;
44
import com.somemore.community.domain.CommunityBoardView;

src/main/java/com/somemore/community/service/CommunityBoardQueryService.java renamed to src/main/java/com/somemore/community/service/board/CommunityBoardQueryService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package com.somemore.community.service;
1+
package com.somemore.community.service.board;
22

33
import com.somemore.community.domain.CommunityBoard;
44
import com.somemore.community.domain.CommunityBoardView;
55
import com.somemore.community.dto.response.CommunityBoardGetDetailResponseDto;
66
import com.somemore.community.dto.response.CommunityBoardGetResponseDto;
7-
import com.somemore.community.repository.CommunityBoardRepository;
8-
import com.somemore.community.usecase.CommunityBoardQueryUseCase;
7+
import com.somemore.community.repository.board.CommunityBoardRepository;
8+
import com.somemore.community.usecase.board.CommunityBoardQueryUseCase;
99
import com.somemore.global.exception.BadRequestException;
1010
import lombok.RequiredArgsConstructor;
1111
import org.springframework.stereotype.Service;

src/main/java/com/somemore/community/service/CreateCommunityBoardService.java renamed to src/main/java/com/somemore/community/service/board/CreateCommunityBoardService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.somemore.community.service;
1+
package com.somemore.community.service.board;
22

33
import com.somemore.community.domain.CommunityBoard;
44
import com.somemore.community.dto.request.CommunityBoardCreateRequestDto;
5-
import com.somemore.community.repository.CommunityBoardRepository;
6-
import com.somemore.community.usecase.CreateCommunityBoardUseCase;
5+
import com.somemore.community.repository.board.CommunityBoardRepository;
6+
import com.somemore.community.usecase.board.CreateCommunityBoardUseCase;
77
import lombok.RequiredArgsConstructor;
88
import org.springframework.stereotype.Service;
99
import org.springframework.transaction.annotation.Transactional;

src/main/java/com/somemore/community/service/DeleteCommunityBoardService.java renamed to src/main/java/com/somemore/community/service/board/DeleteCommunityBoardService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package com.somemore.community.service;
1+
package com.somemore.community.service.board;
22

33
import com.somemore.community.domain.CommunityBoard;
4-
import com.somemore.community.repository.CommunityBoardRepository;
5-
import com.somemore.community.usecase.DeleteCommunityBoardUseCase;
4+
import com.somemore.community.repository.board.CommunityBoardRepository;
5+
import com.somemore.community.usecase.board.DeleteCommunityBoardUseCase;
66
import com.somemore.global.exception.BadRequestException;
77
import lombok.RequiredArgsConstructor;
88
import org.springframework.stereotype.Service;

src/main/java/com/somemore/community/service/UpdateCommunityBoardService.java renamed to src/main/java/com/somemore/community/service/board/UpdateCommunityBoardService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.somemore.community.service;
1+
package com.somemore.community.service.board;
22

33
import com.somemore.community.domain.CommunityBoard;
44
import com.somemore.community.dto.request.CommunityBoardUpdateRequestDto;
5-
import com.somemore.community.repository.CommunityBoardRepository;
6-
import com.somemore.community.usecase.UpdateCommunityBoardUseCase;
5+
import com.somemore.community.repository.board.CommunityBoardRepository;
6+
import com.somemore.community.usecase.board.UpdateCommunityBoardUseCase;
77
import com.somemore.global.exception.BadRequestException;
88

99
import java.util.UUID;

src/main/java/com/somemore/community/usecase/CommunityBoardQueryUseCase.java renamed to src/main/java/com/somemore/community/usecase/board/CommunityBoardQueryUseCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.community.usecase;
1+
package com.somemore.community.usecase.board;
22

33
import com.somemore.community.dto.response.CommunityBoardGetDetailResponseDto;
44
import com.somemore.community.dto.response.CommunityBoardGetResponseDto;

src/main/java/com/somemore/community/usecase/CreateCommunityBoardUseCase.java renamed to src/main/java/com/somemore/community/usecase/board/CreateCommunityBoardUseCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.community.usecase;
1+
package com.somemore.community.usecase.board;
22

33
import com.somemore.community.dto.request.CommunityBoardCreateRequestDto;
44

src/main/java/com/somemore/community/usecase/DeleteCommunityBoardUseCase.java renamed to src/main/java/com/somemore/community/usecase/board/DeleteCommunityBoardUseCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.community.usecase;
1+
package com.somemore.community.usecase.board;
22

33
import java.util.UUID;
44

src/main/java/com/somemore/community/usecase/UpdateCommunityBoardUseCase.java renamed to src/main/java/com/somemore/community/usecase/board/UpdateCommunityBoardUseCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.community.usecase;
1+
package com.somemore.community.usecase.board;
22

33
import com.somemore.community.dto.request.CommunityBoardUpdateRequestDto;
44

0 commit comments

Comments
 (0)