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.
🌎 PR 요약
🌱 작업한 브랜치
📚 작업한 내용
유저 차단 API 연동
📍 참고 사항
기존 Profile 모델에 id 필드 추가
유저 차단 API 호출 시 유저 id가 필요하기에 추가해뒀습니다.
(+ 기존 posting id를 TravelID로 관리했기에 UserID 구조체도 생성해뒀습니다.)
timelineVC 생성 시, userID 전달
timelineVC로 넘어가는 경우는 두 가지가 있는데요.
이 두가지 경우 중 여행 생성 시에는 userID가 필요하지 않다고 판단했습니다.
userID는 자기 자신이 될거기 때문에 유저 차단 기능을 지원하지 않기 때문이죠.
그래서 VCFactory에서 userID 파라미터는 optional로 선언하고 기본값으로 nil을 추가했습니다ㅏ.
📸 스크린샷
관련 이슈