Skip to content

Commit

Permalink
[fix/#62] UserInfo에 JobEntity.certificated, friends 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
blueme0 committed Jan 21, 2024
1 parent 81ab7c7 commit ba46171
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,19 @@ class SignUpViewModel @Inject constructor(
when (community.value) {
COMMUNITY_WORKER -> JobEntity(
companyName.value,
false,
jobClass.value,
jobDetailClass.value
)
COMMUNITY_STUDENT -> JobEntity(
schoolName.value,
false,
readyJobClass.value,
readyJobDetailClass.value
)
COMMUNITY_TRAINEE -> JobEntity(
null,
false,
readyJobClass.value,
readyJobDetailClass.value
)
Expand All @@ -357,8 +360,10 @@ class SignUpViewModel @Inject constructor(
mbti = mbtiText.value,
status = community.value,
goal = goalText.value,
job = jobEntity,
interests = interests)
job = com.teumteum.domain.entity.JobEntity(jobEntity.name, false, jobEntity.jobClass, jobEntity.detailClass),
interests = interests,
friends = 0
)
} else null
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ data class UserInfo (
val status: String,
val goal: String,
val job: JobEntity,
val interests: List<String>
val interests: List<String>,
val friends: Int
)

@Serializable
data class JobEntity(
val name: String?,
val certificated: Boolean,
@SerialName("class")
val jobClass: String,
val detailClass: String
Expand Down

0 comments on commit ba46171

Please sign in to comment.