diff --git a/app/src/main/java/com/teumteum/teumteum/presentation/signup/SignUpViewModel.kt b/app/src/main/java/com/teumteum/teumteum/presentation/signup/SignUpViewModel.kt index 8b56af6d..eaac34a3 100644 --- a/app/src/main/java/com/teumteum/teumteum/presentation/signup/SignUpViewModel.kt +++ b/app/src/main/java/com/teumteum/teumteum/presentation/signup/SignUpViewModel.kt @@ -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 ) @@ -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 } diff --git a/core/domain/src/main/java/com/teumteum/domain/entity/UserInfo.kt b/core/domain/src/main/java/com/teumteum/domain/entity/UserInfo.kt index 30ad1b3d..20b04b3b 100644 --- a/core/domain/src/main/java/com/teumteum/domain/entity/UserInfo.kt +++ b/core/domain/src/main/java/com/teumteum/domain/entity/UserInfo.kt @@ -16,12 +16,14 @@ data class UserInfo ( val status: String, val goal: String, val job: JobEntity, - val interests: List + val interests: List, + val friends: Int ) @Serializable data class JobEntity( val name: String?, + val certificated: Boolean, @SerialName("class") val jobClass: String, val detailClass: String