-
Notifications
You must be signed in to change notification settings - Fork 3
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
프로필 만들기 API 연결 #177
Merged
Merged
프로필 만들기 API 연결 #177
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
31b0050
fix: 카카오 로그인 성공시 프로필 만들기 페이지로 이동
junjange bbb35b5
feat: 회원가입 API 연결 및 memberId local에서 관리
junjange 401d4cf
feat: 스플래시 및 자동 로그인 구현
junjange 2d6054e
feat: 닉네임 검증
junjange 6b212dc
Merge branch 'develop' of https://github.com/woowacourse-teams/2024-f…
junjange 5635602
chore: 필요없는 코드 제거
junjange File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
android/app/src/main/java/com/woowacourse/friendogly/data/mapper/MemberMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.woowacourse.friendogly.data.mapper | ||
|
||
import com.woowacourse.friendogly.data.model.MemberDto | ||
import com.woowacourse.friendogly.domain.model.Member | ||
|
||
fun MemberDto.toDomain(): Member { | ||
return Member( | ||
id = id, | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
android/app/src/main/java/com/woowacourse/friendogly/data/model/MemberDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.woowacourse.friendogly.data.model | ||
|
||
data class MemberDto( | ||
val id: Long, | ||
) |
15 changes: 15 additions & 0 deletions
15
android/app/src/main/java/com/woowacourse/friendogly/data/repository/MemberRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.woowacourse.friendogly.data.repository | ||
|
||
import com.woowacourse.friendogly.data.mapper.toDomain | ||
import com.woowacourse.friendogly.data.source.MemberDataSource | ||
import com.woowacourse.friendogly.domain.model.Member | ||
import com.woowacourse.friendogly.domain.repository.MemberRepository | ||
|
||
class MemberRepositoryImpl( | ||
private val source: MemberDataSource, | ||
) : MemberRepository { | ||
override suspend fun postMember( | ||
name: String, | ||
email: String, | ||
): Result<Member> = source.postMember(name = name, email = email).mapCatching { result -> result.toDomain() } | ||
} |
10 changes: 10 additions & 0 deletions
10
android/app/src/main/java/com/woowacourse/friendogly/data/source/MemberDataSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.woowacourse.friendogly.data.source | ||
|
||
import com.woowacourse.friendogly.data.model.MemberDto | ||
|
||
interface MemberDataSource { | ||
suspend fun postMember( | ||
name: String, | ||
email: String, | ||
): Result<MemberDto> | ||
} |
5 changes: 5 additions & 0 deletions
5
android/app/src/main/java/com/woowacourse/friendogly/domain/model/Member.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.woowacourse.friendogly.domain.model | ||
|
||
data class Member( | ||
val id: Long, | ||
) |
10 changes: 10 additions & 0 deletions
10
android/app/src/main/java/com/woowacourse/friendogly/domain/repository/MemberRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.woowacourse.friendogly.domain.repository | ||
|
||
import com.woowacourse.friendogly.domain.model.Member | ||
|
||
interface MemberRepository { | ||
suspend fun postMember( | ||
name: String, | ||
email: String, | ||
): Result<Member> | ||
} |
13 changes: 13 additions & 0 deletions
13
android/app/src/main/java/com/woowacourse/friendogly/domain/usecase/PostMemberUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.woowacourse.friendogly.domain.usecase | ||
|
||
import com.woowacourse.friendogly.domain.model.Member | ||
import com.woowacourse.friendogly.domain.repository.MemberRepository | ||
|
||
class PostMemberUseCase( | ||
private val repository: MemberRepository, | ||
) { | ||
suspend operator fun invoke( | ||
name: String, | ||
email: String, | ||
): Result<Member> = repository.postMember(name = name, email = email) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...main/java/com/woowacourse/friendogly/presentation/ui/register/RegisterNavigationAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
너무 과도하게 많아질 것 같아서, dataSourceModule과 RepositoryModule을 나눠도 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다음에 같이 나누어요~~