Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sireal 과제 #24

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Sireal 과제 #24

wants to merge 13 commits into from

Conversation

sijin1017
Copy link

No description provided.


@Transactional(readOnly = true)
public List<BoardResponseDto> getAllBoards() {
return boardRepository.findAll().stream()
Copy link
Contributor

Choose a reason for hiding this comment

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

여기서 그 저희 api 응답 통일한 것
ApiResponse.of(SuccessCode., boardRepository.findAll().stream()
.map(board -> BoardResponseDto.builder()
.id(board.getId())
.name(board.getName())
.description(board.getDescription())
.build())
.collect(Collectors.toList()););

            이런식으로 바꿔야합니다. 수정해서 다시 커밋해주세요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants