You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
598 B
24 lines
598 B
using FluentValidation;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Kean.Domain.Material.Commands
|
|
{
|
|
/// <summary>
|
|
/// 删除安全库存命令
|
|
/// </summary>
|
|
public class DeleteSafetyCommand : CommandValidator<DeleteSafetyCommand>, ICommand
|
|
{
|
|
/// <summary>
|
|
/// 标识
|
|
/// </summary>
|
|
public IEnumerable<int> Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 验证项
|
|
/// </summary>
|
|
protected override void Validation()
|
|
{
|
|
RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空");
|
|
}
|
|
}
|
|
}
|