[Feat/result call integration]: API 통신 Response를 Result를 활용한 예외처리 로직으로 Refact #279
+50
−16
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.
개요
작업 사항
BaseResponse에서 data를 추출하는 확장함수 생성
Service 내 함수 반환형 Result로 감싸기
data모듈 내 repository 또는 datasource 내 함수 코드 수정
mapCatching 활용하여 성공 실패 처리 (성공 시 변환 수행, 실패 시 상태 유지)
참고
https://hivelop.tistory.com/6
변경 사항(optional)
스크린샷(optional)