using FluentValidation;
using System.Collections.Generic;
namespace Kean.Domain.Basic.Commands
{
///
/// 设置角色菜单权限命令
///
public class SetMenuPermissionCommand : CommandValidator, ICommand
{
///
/// 角色 ID
///
public int Id { get; set; }
///
/// 权限
///
public IEnumerable Permission { get; set; }
///
/// 验证项
///
protected override void Validation()
{
RuleFor(r => r.Id).NotEmpty().WithMessage("角色 ID 不允许空");
}
}
}