✨ [STMT-295] 관리자 여부, 포도알 전송 가능 여부 판단 API 분리 및 멤버 상세 화면 통합 API 구현 #153
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.
💁 해결 하려는 문제를 적어주세요
UI에서 관리자만 보이는 옵션이 존재하여, 모든 API에 관리자 여부를 포함시키는 대신 이를 재사용 가능한 하나의 API로 통합했습니다.
하지만 이 방식은 멤버 또는 스터디 상세 화면에서 4~5개의 API 호출이 필요하게 되어, 통신 비용이 증가하고 효율성이 떨어지는 문제가 발생했습니다.
🤔 어떤 방식으로 해결했는지 적어주세요
따라서 클라이언트의 환경에 따라 필요한 정보만을 뽑아주는 BFF(Backend For Frontend) 패턴을 차용하여 기존의 API는 그대로 두고, 화면에 필요한 정보를 통합으로 모아 응답하는 개념적으로 외부 API를 구현했습니다.
🧑🏫 이해를 위해 필요한 자료가 있다면 첨부해주세요