mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
feat: adds FastEndpoints core infrastructure and contracts to the web project
This commit is contained in:
1 parent
394b33efd2
commit
733e174cac
137 files changed
+3139
-158
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for adding an authorization role.
|
||||
/// </summary>
|
||||
/// <param name="RoleName">The name of the role. Required.</param>
|
||||
/// <param name="Permissions">The collection or permissions of the role. Required.</param>
|
||||
[DebuggerDisplay("RoleName: {RoleName}")]
|
||||
public record AddRoleRequest(
|
||||
string? RoleName,
|
||||
List<Guid>? Permissions
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for deleting an authorization role.
|
||||
/// </summary>
|
||||
/// <param name="RoleId">The unique identifier of the role. Required.</param>
|
||||
[DebuggerDisplay("RoleId: {RoleId}")]
|
||||
public record DeleteRoleRequest(
|
||||
Guid RoleId
|
||||
);
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the authorization permissions of a role identified by <paramref name="RoleId"/>.
|
||||
/// </summary>
|
||||
/// <param name="RoleId">The Id of authorization role. Required.</param>
|
||||
[DebuggerDisplay("RoleId: {RoleId}")]
|
||||
public record GetRolePermissionsRequest(
|
||||
Guid RoleId
|
||||
);
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.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 unique identifier of the user for whom to get the authorization permissions. Required.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record GetUserPermissionsRequest(
|
||||
Guid UserId
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.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 unique identifier of the user for whom to get the authorization role. Required.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record GetUserRoleRequest(
|
||||
Guid UserId
|
||||
);
|
||||
@@ -0,0 +1,20 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for updating an existing authorization role.
|
||||
/// </summary>
|
||||
/// <param name="RoleId">The unique identifier of the role. Required.</param>
|
||||
/// <param name="RoleName">The name 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,
|
||||
string? RoleName,
|
||||
List<Guid>? Permissions
|
||||
);
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for updating the authorization role and permissions of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The unique identifier of the user. Required.</param>
|
||||
/// <param name="RoleId">The unique identifier of the role. Optional.</param>
|
||||
/// <param name="Permissions">The collection of Ids of the permissions of the role. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record UpdateUserRoleAndPermissionsRequest(
|
||||
Guid UserId,
|
||||
Guid? RoleId,
|
||||
List<Guid>? Permissions
|
||||
);
|
||||
Reference in new issue
Block a user