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

namespace MiningService.API.Application.Validations;

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