riku
2025-10-27 0f58aa8ea118c3bd0b28396febc58fdbd94eef75
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
}