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: 회원가입 시 기존 회원가입 여부 확인 네트워크 연결 #218

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

loinsir
Copy link
Collaborator

@loinsir loinsir commented Dec 5, 2023

🧑‍🚀 PR 요약

회원 가입 시 기존 가입 여부를 확인하는 API 엔드포인트를 연결했습니다.

📌 변경 사항

지금은 True를 MockData로 놓아서 기존 회원가입 화면을 스킵하고 지나갑니다!

Linked Issue

close #217

Comment on lines +45 to +46
if await worker?.isRegisteredKakao(with: token) == true,
await worker?.loginKakao(with: token) == true {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

밑에 메소드랑 통일성 있게 == true 없애도 되지않을까 싶습니다?

Copy link
Collaborator Author

@loinsir loinsir Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여길 고치려고 하니까 Mock 객체에서 MockURLProtocol.requestHandlerstatic var 이어서 아래쪽이랑 통일하게 되면 data race 때문에 응답이 교차되는 현상이 발생해서 아래를 이것과 똑같이 맞추었습니다...ㅠㅠ
MockURLProtocol.requestHandler를 각 메서드마다 독립적으로 실행하게 되면 나을 것 같은데 우선은 아래를 이것과 통일하도록 할게요

새 이슈에서 진행하겠습니다.

Comment on lines +106 to +108
let endPoint = EndPoint<Response<CheckSignUpDTO>>(path: "/oauth/check-signup/apple",
method: .POST,
bodyParameters: bodyParameters)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

목 워커에서는 따로 엔드포인트 팩토리를 안쓰시는 이유가 있나용

Copy link
Collaborator Author

@loinsir loinsir Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mock 객체인 만큼 최대한 다른 객체의 의존성을 덜어주는게 좋다고 생각하기 때문입니다!
그렇지 않으면 EndPointFactory도 검증의 부담이 생기지요

Copy link
Member

@anyukyung anyukyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니달라..😭

Copy link
Collaborator

@chopmozzi chopmozzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

@loinsir loinsir merged commit c732796 into iOS/dev Dec 6, 2023
1 check passed
@loinsir loinsir linked an issue Dec 6, 2023 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: 회원가입시 가입 여부 체크 네트워크 연결
3 participants