Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 유저 차단 API 연동 #461

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

0inn
Copy link
Collaborator

@0inn 0inn commented Jun 1, 2024

🌎 PR 요약

🌱 작업한 브랜치

📚 작업한 내용

유저 차단 API 연동

📍 참고 사항

기존 Profile 모델에 id 필드 추가

유저 차단 API 호출 시 유저 id가 필요하기에 추가해뒀습니다.
(+ 기존 posting id를 TravelID로 관리했기에 UserID 구조체도 생성해뒀습니다.)

timelineVC 생성 시, userID 전달

timelineVC로 넘어가는 경우는 두 가지가 있는데요.

  1. 리스트에서 클릭하여 상세 타임라인 뷰로 진입
  2. 여행 생성 후 바로 타임라인 뷰로 진입

이 두가지 경우 중 여행 생성 시에는 userID가 필요하지 않다고 판단했습니다.
userID는 자기 자신이 될거기 때문에 유저 차단 기능을 지원하지 않기 때문이죠.
그래서 VCFactory에서 userID 파라미터는 optional로 선언하고 기본값으로 nil을 추가했습니다ㅏ.

static func makeTimelineVC(id: TravelID, userID: UserID? = nil) -> TimelineVC {
   // 생략
}

📸 스크린샷

기능 스크린샷
차단하기 Simulator Screen Recording - iPhone 13 mini - 2024-06-01 at 13 42 43

관련 이슈

@0inn 0inn added 🍎 iOS iOS 작업 시 🌟 Feature 새로운 기능 개발 시 labels Jun 1, 2024
@0inn 0inn requested review from kth1210 and otoolz June 1, 2024 04:43
@0inn 0inn self-assigned this Jun 1, 2024
@0inn 0inn merged commit b06853b into boostcampwm2023:ios-main Sep 22, 2024
@0inn 0inn deleted the ios-feature/#460-userBlockAPI branch September 22, 2024 05:50
@0inn 0inn changed the title [feature] 유저 차단 API 연동 [feat] 유저 차단 API 연동 Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌟 Feature 새로운 기능 개발 시 🍎 iOS iOS 작업 시
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant