| | |
| | | namespace FlexJobApi.Core |
| | | { |
| | | /// <summary> |
| | | /// 用户 |
| | | /// 用户认证 |
| | | /// </summary> |
| | | public class UserAuth : CommonEntity, IEntitySeedData<UserAuth> |
| | | public class UserAuth : CommonEntity |
| | | { |
| | | public UserAuth() |
| | | { |
| | | UserInfos = []; |
| | | } |
| | | /// <summary> |
| | | /// 用户信息 |
| | | /// </summary> |
| | | public User User { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 姓名 |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 用户名 |
| | | /// </summary> |
| | | [Required] |
| | | [MaxLength(32)] |
| | | public string UserName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 手机号 |
| | | /// </summary> |
| | | [MaxLength(11)] |
| | | public string PhoneNumber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否已校验手机号 |
| | | /// </summary> |
| | | public bool IsCheckPhoneNumber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 密码 |
| | | /// </summary> |
| | | public string Password { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 身份证号 |
| | |
| | | /// 银行卡照片 |
| | | /// </summary> |
| | | public string BankCardImg { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 实名通道 |
| | | /// </summary> |
| | | public EnumRealAccess? RealAccess { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否实名 |
| | | /// </summary> |
| | | public bool IsReal { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 用户信息 |
| | | /// </summary> |
| | | public List<UserInfo> UserInfos { get; set; } |
| | | |
| | | public IEnumerable<UserAuth> HasData(DbContext dbContext, Type dbContextLocator) |
| | | { |
| | | return new List<UserAuth> |
| | | { |
| | | new UserAuth |
| | | { |
| | | Id = new Guid("11111111-1111-1111-1111-111111111111"), |
| | | Name = "管理员", |
| | | UserName = "system", |
| | | Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=", |
| | | CreatedTime = new DateTime(2000, 1, 1) |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | } |