mirror of https://github.com/abpframework/abp.git
committed by
GitHub
6 changed files with 75 additions and 36 deletions
@ -0,0 +1,24 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class IdentityClaimTypeEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public bool Required { get; set; } |
||||
|
|
||||
|
public bool IsStatic { get; set; } |
||||
|
|
||||
|
public string Regex { get; set; } |
||||
|
|
||||
|
public string RegexDescription { get; set; } |
||||
|
|
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
public IdentityClaimValueType ValueType { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class IdentityRoleEto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public Guid? TenantId { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public bool IsDefault { get; set; } |
||||
|
|
||||
|
public bool IsStatic { get; set; } |
||||
|
|
||||
|
public bool IsPublic { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
using AutoMapper; |
||||
|
using Volo.Abp.Users; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
public class IdentityDomainMappingProfile : Profile |
||||
|
{ |
||||
|
public IdentityDomainMappingProfile() |
||||
|
{ |
||||
|
CreateMap<IdentityUser, UserEto>(); |
||||
|
CreateMap<IdentityClaimType, IdentityClaimTypeEto>(); |
||||
|
CreateMap<IdentityRole, IdentityRoleEto>(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue