using MediatR;

namespace MiningService.API.Application.Commands;

/// <summary>
/// EN: Command to apply a referral code.
/// VI: Command để áp dụng mã giới thiệu.
/// </summary>
public record ApplyReferralCodeCommand(Guid UserId, string ReferralCode) : IRequest<ApplyReferralResult>;

public record ApplyReferralResult(Guid ReferralId, Guid ReferrerId, bool IsActive);
