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