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;
|
}
|
}
|
}
|