17 lines
530 B
C#
17 lines
530 B
C#
using Core.Cerberos.Adapters.Common.Enums;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Core.Cerberos.External.Clients.Requests
|
|
{
|
|
public class RoleRequest
|
|
{
|
|
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!;
|
|
|
|
}
|
|
}
|