package com.hongyegroup.cpt_auth.mvvm.vm

import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.SavedStateHandle
import com.guadou.lib_baselib.base.vm.BaseViewModel
import com.guadou.lib_baselib.utils.log.YYLogUtils
import com.hongyegroup.cpt_auth.mvvm.repository.DemoRepository
import com.hongyegroup.cpt_auth.mvvm.repository.SchoolRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class UserRegisterViewModel @Inject constructor(
    private val mRepository: DemoRepository,
    private val mSchoolRepository: SchoolRepository,
    private val savedStateHandle: SavedStateHandle,
    private val application: Application
) : BaseViewModel() {

    val mPhoneNumLD = MutableLiveData<String>()    //电话号码值
    val mVerityCodeLD = MutableLiveData<String>()    //验证码值
    val mPasswordLD = MutableLiveData<String>()    //密码值
    val mInviteCodeLD = MutableLiveData<String>()    //邀请码值

    init {
        YYLogUtils.w(
            "mRepository:" + mRepository + " mSchoolRepository:" +
                    mSchoolRepository + " savedStateHandle:" + savedStateHandle
                    + " application:" + application + " activity:" + getActionLiveData()
        )

    }
}