using MediatR;

namespace IamService.API.Application.Commands.Auth;

/// <summary>
/// EN: Command to logout user (revoke tokens).
/// VI: Command để logout user (thu hồi tokens).
/// </summary>
/// <param name="UserId">User ID / ID user</param>
public record LogoutCommand(Guid UserId) : IRequest<LogoutCommandResult>;

/// <summary>
/// EN: Result of LogoutCommand.
/// VI: Kết quả của LogoutCommand.
/// </summary>
/// <param name="Success">Whether the operation was successful / Thao tác có thành công không</param>
/// <param name="Message">Result message / Thông điệp kết quả</param>
public record LogoutCommandResult(bool Success, string Message);
