using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace PTMedicalInsurance.Entity { class LoginUser { public string userName { get; set; } public string passWord { get; set; } [JsonIgnore] public UserInfo user { get; set; } public RoleInfo[] roles { set; get; } [JsonIgnore] public InterfaceInfo interfaceInfo { set; get; } [JsonIgnore] public bool hasLogin { get; set; } private static LoginUser _loginUser = null; public static LoginUser Current { get { if (_loginUser == null) { _loginUser = new LoginUser(); } return _loginUser; } } } }