Moli
2022-04-15 22477f0eca904ec628ab59cd749f959af35c1439
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
37
38
39
using PublicCode.RedisConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace PublicCode.Account
{
    /// <summary>
    /// 登录者信息
    /// </summary>
    public class UserInfoModel:IBaseRedisModel
    {
        /// <summary>
        /// __usertoken
        /// </summary>
        public string id { get; set; }
        public string UserId { get; set; }
        public string UserName { get; set; }
        public string RealName { get; set; }
        public string UserMail { get; set; }
        public string PhoneNumber { get; set; }
        public string MemberId { get; set; }
        public string AccountId { get; set; }
        public string Account { get; set; }
        public string Age { get; set; }
        public string Sex { get; set; }
        public string HeadImg { get; set; }
 
        public virtual bool IsNull() {
            bool res = true;
            foreach (var a in this.GetType().GetProperties()) {
                res = res && string.IsNullOrWhiteSpace(Convert.ToString(a.GetValue(this)));
            }
            return res;
        }
    }
}