23 lines
697 B
C#
23 lines
697 B
C#
using Core.Thalos.BuildingBlocks;
|
|
using Lib.Architecture.BuildingBlocks;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Core.Thalos.Application.UseCases.Roles.Input
|
|
{
|
|
public class CreateRoleRequest : Notificator, ICommand
|
|
{
|
|
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!;
|
|
|
|
public bool Validate()
|
|
{
|
|
return Name != null;
|
|
}
|
|
}
|
|
}
|