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.
33 lines
740 B
33 lines
740 B
3 months ago
|
using FluentValidation;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Kean.Domain.Basic.Commands
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 删除物料命令
|
||
|
/// </summary>
|
||
|
public class DeleteItemCommand : CommandValidator<DeleteItemCommand>, ICommand
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 标识
|
||
|
/// </summary>
|
||
|
public IEnumerable<int> Id
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标识
|
||
|
/// </summary>
|
||
|
public IEnumerable<string> Code { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 验证项
|
||
|
/// </summary>
|
||
|
protected override void Validation()
|
||
|
{
|
||
|
RuleFor(r => r.Code).NotEmpty().WithMessage("物料类型不允许空");
|
||
|
}
|
||
|
}
|
||
|
}
|