package com.zswc.creativity.vmodel

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.zswc.creativity.model.User
import com.ysnows.base.base.BRepository
import com.ysnows.base.base.BViewModel

/**
 *
 *on 2021/3/3
 */
class MainVModel(application: Application) : BViewModel<BRepository>(application) {

    val user: MutableLiveData<User> = MutableLiveData<User>()

    fun getUserInfo(){

//        viewModelScope.launch {
//
//            var it  = repository().lreqTo { NetEngine.service.getUser() }
//            if(it.ok(false)){
//
//                user.value = it.datas
//                it.data()?.let { user ->
//                    user.save()
//                }
//
//            }
//
//        }

    }

   //去登陆





}
