24 lines
585 B
24 lines
585 B
using FluentValidation;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Kean.Domain.Basic.Commands
|
|
{
|
|
/// <summary>
|
|
/// 删除用户命令
|
|
/// </summary>
|
|
public class DeleteUserCommand : CommandValidator<DeleteUserCommand>, ICommand
|
|
{
|
|
/// <summary>
|
|
/// 标识
|
|
/// </summary>
|
|
public IEnumerable<int> Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 验证项
|
|
/// </summary>
|
|
protected override void Validation()
|
|
{
|
|
RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空");
|
|
}
|
|
}
|
|
}
|