Skip to content

feat: Add Board findAll,findByID#35

Open
Jiwon-cho wants to merge 51 commits intofire-crew:mainfrom
Jiwon-cho:feature/Board_CRUD
Open

feat: Add Board findAll,findByID#35
Jiwon-cho wants to merge 51 commits intofire-crew:mainfrom
Jiwon-cho:feature/Board_CRUD

Conversation

@Jiwon-cho
Copy link

No description provided.

@github-actions
Copy link

👋 Thanks for PR! Please regist comment with command:
** 반드시 테스트 및 빌드를 통과해주세요. **
테스트 및 빌드 성공 시에 리뷰 권한 승인됩니다..!

@choipureum choipureum linked an issue Feb 25, 2022 that may be closed by this pull request
2 tasks
@choipureum choipureum added enhancement New feature or request refactoring refactoring Unit Test v1 labels Feb 25, 2022
Jiwon-cho and others added 7 commits March 3, 2022 10:46
…/Board_CRUD

# Conflicts:
#	README.md
#	src/main/java/com/makefire/anonymous/domain/board/entity/Board.java
#	src/main/java/com/makefire/anonymous/domain/board/repository/BoardRepository.java
#	src/main/java/com/makefire/anonymous/domain/common/BasicEntity.java
#	src/main/java/com/makefire/anonymous/rest/controller/api/BoardController.java
#	src/main/java/com/makefire/anonymous/rest/dto/response/Response.java
#	src/main/java/com/makefire/anonymous/service/board/BoardService.java

@Service
@AllArgsConstructor
@Transactional
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Transactional을 클래스 레벨에서 다루기보다 메소드 단위로 다루는게 좋아보입니다.

public static List<BoardResponse> fromList(List<Board> boardList) {
List<BoardResponse> boardResponseList = new ArrayList<>();
for (Board board : boardList
) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

컨벤션 통일 이슈

return response(boardService.updateBoard(boardRequest));
}

@DeleteMapping("{id}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ 추가

@@ -61,10 +65,14 @@ void selectBoardsTest() throws Exception {
@DisplayName("게시판 단건 조회 테스트")
void selectBoardTest() throws Exception{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throws Exception제거 및 예외케이스를 따로 만들어주세욤

@choipureum
Copy link
Collaborator

훔 기존꺼랑 나는거라 흠... 연습 됬으면 ㄹㅇ 서비스 ㄱ ㄱ

* 가독성이나 유연성등의 측면에서 더 좋다는
* 자료를 봐서 일단 적용해봄
* 어떤게 더 날지 판단 부탁
*/
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@choipureum 질문 이건데 확인좀 부탁하고, 다한것 같기는 한데.. 부족한거 있으면 말 해주면 감사

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactoring refactoring Unit Test v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add Board CRUD

2 participants