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

namespace TakeoutSaaS.Application.App.Orders.Validators;

/// <summary>
/// 全部订单详情查询验证器。
/// </summary>
public sealed class GetOrderAllDetailQueryValidator : AbstractValidator<GetOrderAllDetailQuery>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public GetOrderAllDetailQueryValidator()
    {
        RuleFor(x => x.OrderNo).NotEmpty().MaximumLength(32);
    }
}
