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

namespace TakeoutSaaS.Application.App.Stores.Validators;

/// <summary>
/// 桌码上下文查询验证器。
/// </summary>
public sealed class GetStoreTableContextQueryValidator : AbstractValidator<GetStoreTableContextQuery>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public GetStoreTableContextQueryValidator()
    {
        RuleFor(x => x.TableCode).NotEmpty().MaximumLength(32);
    }
}
