mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 03:11:10 +00:00
Adds authorization roles administrator dashboard
This commit is contained in:
1 parent
290af03c83
commit
1df31515fb
191 files changed
+6189
-806
No files matched your search
+7
-7
@@ -11,16 +11,16 @@ namespace Lumina.Application.Common.Mapping.Authorization;
|
||||
public static class UserAuthorizationEntityMapping
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts <paramref name="infrastructureEntity"/> to <see cref="GetAuthorizationResponse"/>.
|
||||
/// Converts <paramref name="repositoryEntity"/> to <see cref="AuthorizationResponse"/>.
|
||||
/// </summary>
|
||||
/// <param name="infrastructureEntity">The infrastructure entity to be converted.</param>
|
||||
/// <param name="repositoryEntity">The infrastructure entity to be converted.</param>
|
||||
/// <returns>The converted response.</returns>
|
||||
public static GetAuthorizationResponse ToResponse(this UserAuthorizationEntity infrastructureEntity)
|
||||
public static AuthorizationResponse ToResponse(this UserAuthorizationEntity repositoryEntity)
|
||||
{
|
||||
return new GetAuthorizationResponse(
|
||||
infrastructureEntity.UserId,
|
||||
infrastructureEntity.Roles,
|
||||
infrastructureEntity.Permissions
|
||||
return new AuthorizationResponse(
|
||||
repositoryEntity.UserId,
|
||||
repositoryEntity.Roles,
|
||||
repositoryEntity.Permissions
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user