mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 04:11:10 +00:00
Adds authorization permissions administrator dashboard
This commit is contained in:
1 parent
152cb48050
commit
583b8db865
106 files changed
+5916
-2085
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the request model for retrieving the authorization permissions of a user identified by <paramref name="UserId"/>.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user for whom to get the authorization permissions. Required.</param>
|
||||
public record GetUserPermissionsRequest(
|
||||
Guid? UserId
|
||||
);
|
||||
@@ -0,0 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the request model for retrieving the authorization role of a user identified by <paramref name="UserId"/>.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user for whom to get the authorization role. Required.</param>
|
||||
public record GetUserRoleRequest(
|
||||
Guid? UserId
|
||||
);
|
||||
@@ -11,7 +11,7 @@ namespace Lumina.Contracts.Requests.Authorization;
|
||||
/// </summary>
|
||||
/// <param name="RoleId">The Id of the role. Required.</param>
|
||||
/// <param name="RoleName">The name of the role. Required.</param>
|
||||
/// <param name="Permissions">The collection or permissions of the role. Required.</param>
|
||||
/// <param name="Permissions">The collection of Ids of the permissions of the role. Required.</param>
|
||||
[DebuggerDisplay("RoleName: {RoleName}")]
|
||||
public record UpdateRoleRequest(
|
||||
Guid? RoleId,
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for updating the authorization role and permissions of a user.
|
||||
/// </summary>
|
||||
/// <param name="RoleId">The Id of the user. Required.</param>
|
||||
/// <param name="RoleId">The Id of the role. Required.</param>
|
||||
/// <param name="Permissions">The collection of Ids of the permissions of the role. Required.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record UpdateUserRoleAndPermissionsRequest(
|
||||
Guid? UserId,
|
||||
Guid? RoleId,
|
||||
List<Guid>? Permissions
|
||||
);
|
||||
Reference in new issue
Block a user