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

namespace TakeoutSaaS.Application.App.Products.Validators;

/// <summary>
/// 分类列表查询验证器。
/// </summary>
public sealed class GetProductCategoryListQueryValidator : AbstractValidator<GetProductCategoryListQuery>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public GetProductCategoryListQueryValidator()
    {
        RuleFor(x => x.StoreId).GreaterThan(0);
    }
}
