Add project files.

This commit is contained in:
Sergio Matias Urquin
2025-04-29 18:55:01 -06:00
commit 44e353e386
59 changed files with 2695 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using Core.Cerberos.Adapters.Common.Enums;
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class AddApplicationToRoleRequest
{
public string RoleId { get; set; }
public ApplicationsEnum Application { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using Core.Cerberos.Adapters.Common.Enums;
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class ChangeRoleStatusRequest
{
public string Id { get; set; }
public StatusEnum Status { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using Core.Cerberos.Adapters.Common.Enums;
using System.Text.Json.Serialization;
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class CreateRoleRequest
{
public string Name { get; set; } = null!;
public string Description { get; set; } = null!;
[JsonConverter(typeof(EnumArrayJsonConverter<ApplicationsEnum>))]
public ApplicationsEnum[]? Applications { get; set; } = null!;
public string[] Modules { get; set; } = null!;
public string[] Permissions { get; set; } = null!;
}
}

View File

@@ -0,0 +1,6 @@
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class GetAllRolesRequest
{
}
}

View File

@@ -0,0 +1,7 @@
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class GetRoleRequest
{
public string Id { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using Core.Cerberos.Adapters.Common.Enums;
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class RemoveApplicationFromRoleRequest
{
public string RoleId { get; set; }
public ApplicationsEnum Application { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using Core.Cerberos.Adapters.Common.Enums;
using System.Text.Json.Serialization;
namespace Core.Cerberos.Application.UseCases.Roles.Input
{
public class UpdateRoleRequest
{
public string Id { get; set; } = null!;
public string Name { get; set; } = null!;
public string? Description { get; set; }
[JsonConverter(typeof(EnumArrayJsonConverter<ApplicationsEnum>))]
public ApplicationsEnum[]? Applications { get; set; }
public string[] Modules { get; set; } = null!;
public string[] Permissions { get; set; } = null!;
public StatusEnum Status { get; set; }
}
}