Skip to content

[feature/#7] 4주차 과제 구현#8

Open
kangyein9892 wants to merge 24 commits intodevelopfrom
feature/#7-week4
Open

[feature/#7] 4주차 과제 구현#8
kangyein9892 wants to merge 24 commits intodevelopfrom
feature/#7-week4

Conversation

@kangyein9892
Copy link
Copy Markdown
Collaborator

📌 PR 요약

🌱 작업한 내용

  • 4주차 필수 과제 구현했습니다.

🌱 PR 포인트

  • 로그인 api
  • 회원가입 api
  • 내 닉네임 조회 api

📸 스크린샷

회원가입 로그인
default.mp4
default.mp4
닉네임
default.mp4

📮 관련 이슈

#7

@kangyein9892 kangyein9892 self-assigned this May 9, 2025
@kangyein9892 kangyein9892 linked an issue May 9, 2025 that may be closed by this pull request
3 tasks
) : AuthRepository {

override suspend fun signUp(signUpData: SignUpEntity): Result<SignUpUserEntity> =
runCatching {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Try catch 문으로 사용했었는데 runCatching으로 체이닝이 깔끔하게 이뤄지네요 하나 배워갑니다!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

저도 현재 화면에서 try-catch 방식으로 예외 처리를 하고 있는데요, 예인님처럼 runCatching을 쓰면 비동기 체이닝이 더 깔끔해 보이네용 .ᐟ
혹시 팀에서 선호하는 방식이 따로 있나요, 아니면 상황에 따라 자유롭게 쓰면 될까요?

override fun intercept(chain: Interceptor.Chain): Response {
val request = chain.request()
val builder = request.newBuilder()
val authType = request.tag(AuthType::class.java) ?: AuthType.TOKEN
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

각 요청에 맞게 분기처리까지..! 배워갑니다

) : AuthRepository {

override suspend fun signUp(signUpData: SignUpEntity): Result<SignUpUserEntity> =
runCatching {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

저도 현재 화면에서 try-catch 방식으로 예외 처리를 하고 있는데요, 예인님처럼 runCatching을 쓰면 비동기 체이닝이 더 깔끔해 보이네용 .ᐟ
혹시 팀에서 선호하는 방식이 따로 있나요, 아니면 상황에 따라 자유롭게 쓰면 될까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 4주차 과제

3 participants