using FluentValidation;
using MiningService.API.Application.Commands;

namespace MiningService.API.Application.Validations;

/// <summary>
/// EN: Validator for ClaimMiningRewardCommand.
/// VI: Validator cho ClaimMiningRewardCommand.
/// </summary>
public class ClaimMiningRewardCommandValidator : AbstractValidator<ClaimMiningRewardCommand>
{
    public ClaimMiningRewardCommandValidator()
    {
        RuleFor(x => x.UserId)
            .NotEmpty().WithMessage("User ID is required / ID người dùng là bắt buộc");
    }
}
