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

namespace TakeoutSaaS.Application.App.StoreAudits.Validators;

/// <summary>
/// 强制关闭命令验证器。
/// </summary>
public sealed class ForceCloseStoreCommandValidator : AbstractValidator<ForceCloseStoreCommand>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public ForceCloseStoreCommandValidator()
    {
        RuleFor(x => x.StoreId).GreaterThan(0);
        RuleFor(x => x.Reason).NotEmpty().MaximumLength(500);
        RuleFor(x => x.Remark).MaximumLength(500);
    }
}
