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