using MediatR;

namespace IamService.API.Application.Commands.Groups;

/// <summary>
/// EN: Command to create a new group.
/// VI: Command để tạo nhóm mới.
/// </summary>
public record CreateGroupCommand(
    string Name,
    Guid OrganizationId,
    string? Description = null) : IRequest<CreateGroupCommandResult>;

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