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

namespace TakeoutSaaS.Application.App.StoreAudits.Validators;

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