Skip to content

Commit dba4fef

Browse files
committed
feat: 회원정보 조회 API 수정 - 선행 점수, 선행 마크 개수 추가
1 parent 4371bef commit dba4fef

6 files changed

Lines changed: 19 additions & 20 deletions

File tree

core/data/src/main/java/com/example/data/repository/UserRepositoryImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class UserRepositoryImpl @Inject constructor(
3636
val userInfo = UserInfo(
3737
name = response.nickname,
3838
profileImageUrl = response.profileImageUrl,
39-
goodDeedScore = response.goodDeedScore,
40-
goodDeedMarkCount = response.goodDeedMarkCount,
39+
verificationScore = response.verificationScore,
40+
verificationCount = response.verificationCount,
4141
)
4242

4343
localUserDataSource.setUserInfo(userInfo)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.example.domain.model.search
2+
3+
import com.example.domain.model.post.SearchType
4+
import com.example.domain.model.post.TabType
5+
6+
data class SearchCondition(
7+
val keyword: String,
8+
val tabType: TabType,
9+
val searchType: SearchType,
10+
val isSearched: Boolean
11+
)

core/domain/src/main/java/com/example/domain/model/user/UserInfo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ package com.example.domain.model.user
33
data class UserInfo(
44
val name : String,
55
val profileImageUrl : String? = null,
6-
val goodDeedScore : Int,
7-
val goodDeedMarkCount : Int
6+
val verificationScore : Int,
7+
val verificationCount : Int
88
)

core/network/src/main/java/com/example/network/model/user/LoadUserInfoResponse.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import kotlinx.serialization.Serializable
66
data class LoadUserInfoResponse(
77
val nickname : String,
88
val profileImageUrl : String? = null,
9-
val goodDeedScore : Int = 0,
10-
val goodDeedMarkCount : Int = 0,
9+
val verificationScore : Int = 0,
10+
val verificationCount : Int = 0,
1111
)

feature/mypage/src/main/java/com/example/mypage/graph/mypage/MyPageScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ private fun MyPageScreen(
168168

169169
Spacer(Modifier.height(10.dp))
170170

171-
Text("선행 점수 ${userInfo.goodDeedScore}", style = TraceTheme.typography.bodyML)
171+
Text("선행 점수 ${userInfo.verificationScore}", style = TraceTheme.typography.bodyML)
172172

173173
Spacer(Modifier.height(5.dp))
174174

175175
Text(
176-
"선행 마크 ${userInfo.goodDeedMarkCount}",
176+
"선행 마크 ${userInfo.verificationCount}",
177177
style = TraceTheme.typography.bodyML
178178
)
179179
}

feature/mypage/src/main/java/com/example/mypage/graph/mypage/MyPageViewModel.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,6 @@ class MyPageViewModel @Inject constructor(
6060
_tapType.value = tab
6161
}
6262

63-
private fun setWrittenPosts(posts: List<PostFeed>) {
64-
_writtenPosts.value = posts
65-
}
66-
67-
private fun setCommentedPosts(posts: List<PostFeed>) {
68-
_commentedPosts.value = posts
69-
}
70-
71-
private fun setReactedPosts(posts: List<PostFeed>) {
72-
_reactedPosts.value = posts
73-
}
74-
7563
sealed class MyPageEvent {
7664
data object NavigateToEditProfile : MyPageEvent()
7765
data class NavigateToPost(val postId: Int) : MyPageEvent()

0 commit comments

Comments
 (0)