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

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

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