using FluentValidation; using System.Collections.Generic; namespace Kean.Domain.Material.Commands { /// /// 删除物料命令 /// public class DeleteMaterialCommand : CommandValidator, ICommand { /// /// 标识 /// public IEnumerable Id { get; set; } /// /// 验证项 /// protected override void Validation() { RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空"); } } }