[BE] feat: 세션 저장 정보를 리졸버를 통해 컨트롤러에 가져온다 #1087
Closed
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.
🚀 어떤 기능을 구현했나요 ?
🔥 어떻게 해결했나요 ?
여기서 Member로 생성하여 반환하지 않는 이유는, 각 도메인에서 Member를 직접적으로 사용할 필요 없이 id만을 사용하기 때문에 굳이 다른 패키지의 객체를 전송할 필요가 없다고 생각했습니다. 내부 필드가 하나여도 dto를 통해 감싸서 전달하는 것이 안전해 보입니다.
추가로, 진행하면서 api 수정이 필요한 부분도 함께 진행했습니다.
우선 uri와 메서드명을 통일했습니다.
각종 uri와 메서드명이 자원 중심과 뷰 중심이 섞여있어서 자원 중심으로 통일했습니다.
즉, api를 특정 페이지 뷰에 종속되지 않게 하기 위해서 여러모로 통일 시켰습니다. (이 부분이 괜찮은지 잘 봐주세요.)
지금까지 api가 특정 페이지에 종속되어 있다 보니, 여러 응답에서 리뷰 그룹 정보(리뷰이, 프로젝트명)가 중복되어서 계속 응답됩니다. 단순히 요청에 대한 자원만 제공한다면 불필요해 보입니다. 페이지에서 자원의 정보와 함께 제공하는 그룹의 정보들은 /groups?(기존의 groups/summary) 로 요청해서 사용하면 될 것 같습니다.
수정하면서 aop 로직이 필요한 부분 TODO로 남겨놓았습니다. (산초 작업 시, 일치하는지 확인해주세요)
📝 어떤 부분에 집중해서 리뷰해야 할까요?
📚 참고 자료, 할 말