feat: Mini 桌码扫码上下文接口

This commit is contained in:
2025-12-04 09:37:05 +08:00
parent 19422df0f1
commit 9220e0ca36
8 changed files with 202 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
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);
}
}