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

namespace TakeoutSaaS.Application.App.Stores.Validators;

/// <summary>
/// 删除门店命令验证器。
/// </summary>
public sealed class DeleteStoreCommandValidator : AbstractValidator<DeleteStoreCommand>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public DeleteStoreCommandValidator()
    {
        // 1. 校验门店标识
        RuleFor(command => command.Id).GreaterThan(0);
    }
}

