using Ping9719.WpfEx.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WCS.Model.ApiModel; namespace 智能仓储WCS管理系统 { public class UserInfoViewModel : BindableBase { private bool isLogin = false; /// /// 是否登录 /// public bool IsLogin { get => isLogin; set { SetProperty(ref isLogin, value); } } private string LoginName_; /// /// 登录名 /// public string LoginName { get => LoginName_; set { SetProperty(ref LoginName_, value); } } private object Auth_; /// /// 权限变化通知 /// public object Auth { get => Auth_; set { SetProperty(ref Auth_, value); } } private UserModel User_; /// /// 用户 /// public UserModel User { get => User_; set { SetProperty(ref User_, value); LoginName = value?.LoginName ?? null; } } private List Roles_; /// /// 角色 /// public List Roles { get => Roles_; set { SetProperty(ref Roles_, value); Auth = new object(); } } } }