using FluentValidation;
using MissionService.API.Application.Commands;

namespace MissionService.API.Application.Validations;

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

        RuleFor(x => x.TaskId)
            .NotEmpty().WithMessage("Task ID is required / ID task là bắt buộc");
    }
}
