-
Notifications
You must be signed in to change notification settings - Fork 2
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/#81] splash api 연결 및 tendency result api / UI 작업 #90
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
50cc96e
[CHORE/#79] API 생성
chattymin 11ec49f
[CHORE/#79] Auth로 통합
chattymin e038fae
[FEAT/#79] State에 따른 분기처리 구현
chattymin 8cf30db
[CHORE/#79] Tendency 관련 네이밍 변경
chattymin a2d9ccd
[ADD/#79] 검사 결과 이미지 추가
chattymin 01b878a
[ADD/#81] 유형검사 관련 데이터 정리
chattymin 28f4583
[ADD/#81] 성향검사 Mock Data 삽입
chattymin 658d137
[FEAT/#81] 회원정보 조회 API 구현 및 연결
chattymin 687503a
[FEAT/#81] 회원정보 조회 API 연결
chattymin b205c36
[FEAT/#81] 불필요한 xml 요소 제거
chattymin 239f55d
[FEAT/#81] 화면 연결
chattymin 8bcda27
Merge branch 'develop' into feat/#81-splash-api
chattymin c8cf44a
[FEAT/#81] 분기처리 및 화면이동
chattymin 33f6605
[FEAT/#81] Tendency Result UI 최종 수정
chattymin 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
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
8 changes: 8 additions & 0 deletions
8
data/src/main/java/com/going/data/datasource/ProfileDataSource.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,8 @@ | ||
package com.going.data.datasource | ||
|
||
import com.going.data.dto.BaseResponse | ||
import com.going.data.dto.response.UserProfileResponseDto | ||
|
||
interface ProfileDataSource { | ||
suspend fun getUserProfile(): BaseResponse<UserProfileResponseDto> | ||
} |
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
14 changes: 14 additions & 0 deletions
14
data/src/main/java/com/going/data/datasourceImpl/ProfileDataSourceImpl.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,14 @@ | ||
package com.going.data.datasourceImpl | ||
|
||
import com.going.data.datasource.ProfileDataSource | ||
import com.going.data.dto.BaseResponse | ||
import com.going.data.dto.response.UserProfileResponseDto | ||
import com.going.data.service.ProfileService | ||
import javax.inject.Inject | ||
|
||
class ProfileDataSourceImpl @Inject constructor( | ||
private val profileService: ProfileService, | ||
) : ProfileDataSource { | ||
override suspend fun getUserProfile(): BaseResponse<UserProfileResponseDto> = | ||
profileService.getUserProfile() | ||
} |
17 changes: 17 additions & 0 deletions
17
data/src/main/java/com/going/data/dto/response/UserProfileResponseDto.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,17 @@ | ||
package com.going.data.dto.response | ||
|
||
import com.going.domain.entity.request.UserProfileRequestModel | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class UserProfileResponseDto( | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("intro") | ||
val intro: String, | ||
@SerialName("result") | ||
val result: Int, | ||
) { | ||
fun toProfileModel() = UserProfileRequestModel(name, intro, result) | ||
} |
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
16 changes: 16 additions & 0 deletions
16
data/src/main/java/com/going/data/repositoryImpl/ProfileRepositoryImpl.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,16 @@ | ||
package com.going.data.repositoryImpl | ||
|
||
import com.going.data.datasource.AuthDataSource | ||
import com.going.data.datasource.ProfileDataSource | ||
import com.going.domain.entity.request.UserProfileRequestModel | ||
import com.going.domain.repository.AuthRepository | ||
import com.going.domain.repository.ProfileRepository | ||
import javax.inject.Inject | ||
|
||
class ProfileRepositoryImpl @Inject constructor( | ||
private val profileDataSource: ProfileDataSource | ||
) : ProfileRepository { | ||
override suspend fun getUserProfile(): Result<UserProfileRequestModel> = runCatching { | ||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 줄바꿈이 좋을 것 같아요 ~ |
||
profileDataSource.getUserProfile().data.toProfileModel() | ||
} | ||
} |
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
data/src/main/java/com/going/data/service/ProfileService.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.going.data.service | ||
|
||
import com.going.data.dto.BaseResponse | ||
import com.going.data.dto.response.UserProfileResponseDto | ||
import retrofit2.http.GET | ||
|
||
interface ProfileService { | ||
@GET("api/users/profile") | ||
suspend fun getUserProfile(): BaseResponse<UserProfileResponseDto> | ||
} |
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.going.domain.entity | ||
|
||
enum class AuthState { | ||
LOADING, SUCCESS, FAILURE, SIGNUP, SIGNIN, TENDENCY, EMPTY | ||
} | ||
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오@!@! signup, signin, tendency도 있군요! |
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
7 changes: 7 additions & 0 deletions
7
domain/src/main/kotlin/com/going/domain/entity/request/UserProfileRequestModel.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,7 @@ | ||
package com.going.domain.entity.request | ||
|
||
data class UserProfileRequestModel( | ||
val name: String, | ||
val intro: String, | ||
val result: Int, | ||
) |
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
7 changes: 7 additions & 0 deletions
7
domain/src/main/kotlin/com/going/domain/repository/ProfileRepository.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,7 @@ | ||
package com.going.domain.repository | ||
|
||
import com.going.domain.entity.request.UserProfileRequestModel | ||
|
||
interface ProfileRepository { | ||
suspend fun getUserProfile(): Result<UserProfileRequestModel> | ||
} |
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
9 changes: 0 additions & 9 deletions
9
presentation/src/main/java/com/going/presentation/onboarding/signin/SignInState.kt
This file was deleted.
Oops, something went wrong.
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.
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.
코틀린을 사랑하는 마음이 담겨있네요