using FluentValidation;
using TakeoutSaaS.Application.App.Products.Commands;

namespace TakeoutSaaS.Application.App.Products.Validators;

/// <summary>
/// 分类解绑商品命令验证器。
/// </summary>
public sealed class UnbindCategoryProductCommandValidator : AbstractValidator<UnbindCategoryProductCommand>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public UnbindCategoryProductCommandValidator()
    {
        RuleFor(x => x.StoreId).GreaterThan(0);
        RuleFor(x => x.CategoryId).GreaterThan(0);
        RuleFor(x => x.ProductId).GreaterThan(0);
    }
}
