using FluentValidation; namespace Kean.Domain.Task.Commands { /// /// 任务取消命令 /// public class CallDeleteCommand : CommandValidator, ICommand { /// /// 标识 /// public int Id { get; set; } /// /// 人工标志 /// public int ManualFlg { get; set; } /// /// 操作者 /// public int Operator { get; set; } /// /// 验证项 /// protected override void Validation() { RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空"); } } }