File tree Expand file tree Collapse file tree
data/src/main/java/com/example/data/repository
domain/src/main/java/com/example/domain/model
network/src/main/java/com/example/network/model/user
feature/mypage/src/main/java/com/example/mypage/graph/mypage Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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+ )
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ package com.example.domain.model.user
33data 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)
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ import kotlinx.serialization.Serializable
66data 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)
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments