riku
2021-02-25 e102578ebfc95c27aeb13dce13fb82af53a2bead
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package cn.flightfeather.thirdapp.module.base
 
import android.arch.lifecycle.ViewModel
import cn.flightfeather.thirdapp.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
}