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

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

/// <summary>
/// 经营报表批量导出查询验证器。
/// </summary>
public sealed class ExportFinanceBusinessReportBatchQueryValidator : AbstractValidator<ExportFinanceBusinessReportBatchQuery>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public ExportFinanceBusinessReportBatchQueryValidator()
    {
        RuleFor(x => x.StoreId).GreaterThan(0);
        RuleFor(x => x.Page).GreaterThan(0);
        RuleFor(x => x.PageSize).InclusiveBetween(1, 200);
    }
}
