using MediatR;

namespace IamService.API.Application.Commands.Roles;

/// <summary>
/// EN: Command to create a new role.
/// VI: Command để tạo role mới.
/// </summary>
/// <param name="Name">Role name / Tên role</param>
/// <param name="Description">Role description / Mô tả role</param>
public record CreateRoleCommand(
    string Name,
    string? Description) : IRequest<CreateRoleCommandResult>;

/// <summary>
/// EN: Result of CreateRoleCommand.
/// VI: Kết quả của CreateRoleCommand.
/// </summary>
public record CreateRoleCommandResult(
    Guid Id,
    string Name,
    string? Description,
    DateTime CreatedAt);
