riku
2022-01-20 5a0fff8095cd5356f57c181b7e7b820e0f7efacf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package cn.flightfeather.thirdappmodule.module.base
 
import android.arch.lifecycle.ViewModel
import cn.flightfeather.thirdappmodule.CommonApplication
 
/**
 * @author riku
 * Date: 2019/7/31
 */
open class BaseViewModel : ViewModel() {
 
    val application: CommonApplication = CommonApplication.getInstance()
    val userId: String = application.currentUser.guid ?: ""
    val userTypeId: Byte = application.currentUser.usertypeid ?: 3
    val acountName = application.currentUser.acountname
    val realName = application.currentUser.realname
}