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

namespace TakeoutSaaS.Application.App.StoreAudits.Validators;

/// <summary>
/// 审核通过命令验证器。
/// </summary>
public sealed class ApproveStoreCommandValidator : AbstractValidator<ApproveStoreCommand>
{
    /// <summary>
    /// 初始化验证规则。
    /// </summary>
    public ApproveStoreCommandValidator()
    {
        RuleFor(x => x.StoreId).GreaterThan(0);
        RuleFor(x => x.Remark).MaximumLength(500);
    }
}
