啊鑫
2024-10-25 cefcc903f51610846fa313a3a35bca34e129c1fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Gs.DevApp.Entity
{
    public class LoginInfoModel
    {
        private static LoginInfoModel _CurrentUser;
 
        //登录组织编号
 
        //登录时间
 
        /// <summary>
        ///     登录用户的guid
        /// </summary>
        public string LoginUserGuid { get; set; } = "";
 
        /// <summary>
        ///     登录用户的组织 orgGuid
        /// </summary>
        public string LoginOrgGuid { get; set; } = "";
 
        public string LoginTime { get; set; }
 
        public string LoginFactory { get; set; }
 
        //应用单件模式,保存用户登录状态
        public static LoginInfoModel CurrentUser
        {
            get
            {
                if (_CurrentUser == null)
                    _CurrentUser = new LoginInfoModel();
                return _CurrentUser;
            }
        }
    }
}