feat(interview): 세션을 기준으로 미션을 필터링 #1645
Merged
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.
다음은
sessionId를 기준으로 미션을 필터링하는 기능을 백엔드에 추가한 풀 리퀘스트입니다. 이 변경은MissionController,MissionService,MissionRepository에 반영되었습니다. 주요 변경 사항은 다음과 같습니다:백엔드 API 개선
showMissions엔드포인트에 선택적sessionId쿼리 파라미터를 추가했습니다.sessionId가 제공되면 해당 세션 ID에 해당하는 미션들만 반환하고, 없으면 전체 미션을 반환합니다.(
backend/src/main/java/wooteco/prolog/session/ui/MissionController.java)서비스 레이어 업데이트
findAllBySessionId메서드를 추가했습니다.(
backend/src/main/java/wooteco/prolog/session/application/MissionService.java)리포지토리 레이어 업데이트
findBySessionId메서드를 추가했습니다.(
backend/src/main/java/wooteco/prolog/session/domain/repository/MissionRepository.java)사소한 코드 정리
MissionController에서@RequestParam을 포함한 import 구문을 정리하고, 전체 import 구조를 개선했습니다.(
backend/src/main/java/wooteco/prolog/session/ui/MissionController.java) [1] [2]