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

namespace MiningService.API.Application.Validations;

/// <summary>
/// EN: Validator for RestoreMinerCommand.
/// VI: Validator cho RestoreMinerCommand.
/// </summary>
public class RestoreMinerCommandValidator : AbstractValidator<RestoreMinerCommand>
{
    public RestoreMinerCommandValidator()
    {
        RuleFor(x => x.MinerId)
            .NotEmpty().WithMessage("Miner ID is required / ID thợ đào là bắt buộc");
    }
}
