using FluentValidation;
namespace Kean.Domain.Basic.Commands
{
///
/// 修改角色命令
///
public class ModifyRoleCommand : CommandValidator, ICommand
{
///
/// 标识
///
public int Id { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 验证项
///
protected override void Validation()
{
RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空");
RuleFor(r => r.Name).NotEmpty().WithMessage("名称不允许空");
}
}
}