using Infrastructure.Domain; using Infrastructure.Web.Mvc; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "用户")] [GeneratedController] public class User : BaseEntity, ISoftDeleteEntity, IVersionEntity { [Display(Name = "用户名")] public string UserName { get; set; } public string SecurityStamp { get; set; } public string PasswordHash { get; set; } public bool PasswordConfirmed { get; set; } [Display(Name = "邮箱")] public string Email { get; set; } [Display(Name = "邮箱已认证")] public bool EmailConfirmed { get; set; } [Display(Name = "手机号")] public string PhoneNumber { get; set; } [Display(Name = "手机已认证")] public bool PhoneNumberConfirmed { get; set; } [Display(Name = "支付密码")] public string PayPassword { get; set; } [Display(Name = "支付密码已认证")] public bool PayPasswordConfirmed { get; set; } [Display(Name = "真实姓名")] public string RealName { get; set; } [Display(Name = "身份证号")] public string IdCardNumber { get; set; } [Display(Name = "已实名认证")] public bool IdentityConfirmed { get; set; } [Display(Name = "昵称")] public string NickName { get; set; } [Display(Name = "头像")] public string Avatar { get; set; } [Display(Name = "人脸识别")] public string FaceImage { get; set; } [Display(Name = "性别")] public Sex Sex { get; set; } [Display(Name = "生日")] public DateTime? Birthday { get; set; } [Display(Name = "可用余额")] public decimal AvailBalance { get; set; } [Display(Name = "冻结余额")] public decimal FrozenBlance { get; set; } [Display(Name = "积分")] public long Point { get; set; } [Display(Name = "启用登录锁定")] public bool LockoutEnabled { get; set; } [Display(Name = "登录失败次数")] public int AccessFailedCount { get; set; } [Display(Name = "锁定截止时间")] public DateTimeOffset? LockoutEnd { get; set; } public string RowVersion { get; set; } public List UserRoles { get; set; } = new List(); public List UserDepartments { get; set; } = new List(); } }