using FluentValidation;
using TakeoutSaaS.Application.App.Finance.Reports.Queries;

namespace TakeoutSaaS.Application.App.Finance.Reports.Validators;

/// <summary>
/// 经营报表 PDF 导出查询验证器。
/// </summary>
public sealed class ExportFinanceBusinessReportPdfQueryValidator : AbstractValidator<ExportFinanceBusinessReportPdfQuery>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public ExportFinanceBusinessReportPdfQueryValidator()
    {
        RuleFor(x => x.StoreId).GreaterThan(0);
        RuleFor(x => x.ReportId).GreaterThan(0);
    }
}
