feat: Mini 桌码扫码上下文接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user