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.
23 lines
551 B
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("保留时间不允许空");
|
|
}
|
|
}
|
|
}
|