Open
Conversation
test: userInfo 수정 로직 테스트 케이스 추가
-서비스 저장소 Map 구조 변경 및 Optional 도입 -테스트 코드 추가
refactor: findById 메서드 반환 타입 변경 (Optional -> Object) 및 예외 처리 로직 내부화 - 채널 참가자 조회(findParticipants) 로직 이관 (ChannelService -> UserService) - 유저 정보 수정(updateUserInfo) 로직 개선 (if문 -> Optional 체이닝) - 특정 유저의 참여 채널 목록 조회 기능 구현
itstimi-XD
approved these changes
Mar 18, 2026
Collaborator
itstimi-XD
left a comment
There was a problem hiding this comment.
전체적인 구조를 잡아주셨어요.
다만 @EnableJpaAuditing, @transactional 같은 핵심 어노테이션과 FK 매핑 방향을 꼭 복습해보세요!
이번에도 미션 진행하시느라 고생 많으셨습니다.
src/main/java/com/sprint/mission/discodeit/service/basic/BasicChannelService.java
Show resolved
Hide resolved
src/main/java/com/sprint/mission/discodeit/mapper/PageresponseMapper.java
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
기본 요구사항
데이터베이스
discodeitdiscodeit_userdiscodeit1234Spring Data JPA 적용하기
엔티티 정의하기
레포지토리와 서비스에 JPA 도입하기
DTO 적극 도입하기
BinaryContent 저장 로직 고도화
데이터베이스에 이미지와 같은 파일을 저장하면 성능 상 불리한 점이 많습니다. 따라서 실제 바이너리 데이터는 별도의 공간에 저장하고, 데이터베이스에는 바이너리 데이터에 대한 메타 정보(파일명, 크기, 유형 등)만 저장하는 것이 좋습니다.
심화
주요 변경사항
스크린샷
멘토에게