using FluentValidation;
namespace Kean.Domain.Order.Commands
{
///
/// 删除订单命令
///
public class DeleteOrderCommand : CommandValidator, ICommand
{
///
/// 标识
///
public int Id { get; set; }
///
/// 状态
///
public bool State { get; set; }
///
/// 验证项
///
protected override void Validation()
{
RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空");
}
}
}