reeplace cerberos by thalos

This commit is contained in:
Sergio Matias Urquin
2025-05-18 19:31:25 -06:00
parent 2519e1b4fb
commit bb87b0e148
59 changed files with 194 additions and 194 deletions

View File

@@ -0,0 +1,10 @@
using Core.Thalos.Adapters.Common.Enums;
namespace Core.Thalos.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.Thalos.Adapters.Common.Enums;
namespace Core.Thalos.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.Thalos.Adapters.Common.Enums;
using System.Text.Json.Serialization;
namespace Core.Thalos.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.Thalos.Application.UseCases.Roles.Input
{
public class GetAllRolesRequest
{
}
}

View File

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

View File

@@ -0,0 +1,10 @@
using Core.Thalos.Adapters.Common.Enums;
namespace Core.Thalos.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.Thalos.Adapters.Common.Enums;
using System.Text.Json.Serialization;
namespace Core.Thalos.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; }
}
}