fix 用户授权问题,档案调整,
This commit is contained in:
10
Src/Dlhis.Entity/Sys/Entities/IdentityResourceClaims.cs
Normal file
10
Src/Dlhis.Entity/Sys/Entities/IdentityResourceClaims.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
public class IdentityResourceClaims
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string IdentityResourceId { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
}
|
||||
23
Src/Dlhis.Entity/Sys/Entities/IdentityResources.cs
Normal file
23
Src/Dlhis.Entity/Sys/Entities/IdentityResources.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
public class IdentityResources
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public bool Required { get; set; }
|
||||
|
||||
public bool Emphasize { get; set; }
|
||||
|
||||
public bool ShowInDiscoveryDocument { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
public DateTime Updated { get; set; }
|
||||
|
||||
public bool NonEditable { get; set; }
|
||||
}
|
||||
16
Src/Dlhis.Entity/Sys/Entities/UserClaims.cs
Normal file
16
Src/Dlhis.Entity/Sys/Entities/UserClaims.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// identity-userclaim
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "UserClaims")]
|
||||
public class UserClaims
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public string ClaimType { get; set; }
|
||||
public string ClaimValue { get; set; }
|
||||
}
|
||||
@@ -5,37 +5,79 @@ namespace Dlhis.Entity.Sys.Entities;
|
||||
/// <summary>
|
||||
/// identity-user
|
||||
/// </summary>
|
||||
[SugarTable("Users")]
|
||||
[SugarTable(TableName = "Users")]
|
||||
public class UserEntity
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账号
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账号大写
|
||||
/// </summary>
|
||||
public string NormalizedUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮件
|
||||
/// </summary>
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮件大写
|
||||
/// </summary>
|
||||
public string NormalizedEmail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮件确认
|
||||
/// </summary>
|
||||
public bool EmailConfirmed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密码hash
|
||||
/// </summary>
|
||||
public string PasswordHash { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 安全时间戳
|
||||
/// </summary>
|
||||
public string SecurityStamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 并发时间戳
|
||||
/// </summary>
|
||||
public string ConcurrencyStamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机号
|
||||
/// </summary>
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机号确认
|
||||
/// </summary>
|
||||
public string PhoneNumberConfirmed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 双重验证启用
|
||||
/// </summary>
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
|
||||
public bool LockoutEnd { get; set; }
|
||||
/// <summary>
|
||||
/// 账号锁定结束时间
|
||||
/// </summary>
|
||||
public DateTime? LockoutEnd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 锁定启用
|
||||
/// </summary>
|
||||
public bool LockoutEnabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登陆错误次数
|
||||
/// </summary>
|
||||
public int AccessFailedCount { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user