山东雷驰
 
 
 
 

23 lines
551 B

using FluentValidation;
namespace Kean.Domain.Basic.Commands
{
/// <summary>
/// 清除记录命令
/// </summary>
public class ClearRecordCommand : CommandValidator<ClearRecordCommand>, ICommand
{
/// <summary>
///
/// </summary>
public int AddMonth { get; set; }
/// <summary>
/// 验证项
/// </summary>
protected override void Validation()
{
RuleFor(r => r.AddMonth).NotEmpty().WithMessage("保留时间不允许空");
}
}
}