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

namespace TakeoutSaaS.Application.App.Stores.Validators;

/// <summary>
/// 删除自提档期验证器。
/// </summary>
public sealed class DeleteStorePickupSlotCommandValidator : AbstractValidator<DeleteStorePickupSlotCommand>
{
    /// <summary>
    /// 初始化规则。
    /// </summary>
    public DeleteStorePickupSlotCommandValidator()
    {
        RuleFor(x => x.SlotId).GreaterThan(0);
        RuleFor(x => x.StoreId).GreaterThan(0);
    }
}
