//
namespace SafeCampus.System;
///
/// 角色查询参数
///
public class RolePageInput : PositionPageInput
{
}
///
/// 角色添加参数
///
public class RoleAddInput : SysRole
{
///
/// 名称
///
[Required(ErrorMessage = "Name不能为空")]
public override string Name { get; set; }
}
///
/// 角色编辑参数
///
public class RoleEditInput : RoleAddInput
{
///
/// Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
}
///
/// 角色授权资源参数
///
public class GrantResourceInput : RoleOwnResourceOutput
{
///
/// 角色Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
///
/// 授权资源信息
///
[Required(ErrorMessage = "GrantInfoList不能为空")]
public override List GrantInfoList { get; set; }
///
/// 是否代码生成
///
public bool IsCodeGen { get; set; }
}
///
/// 角色授权资源参数
///
public class GrantPermissionInput : RoleOwnPermissionOutput
{
///
/// 角色Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
///
/// 授权权限信息
///
[Required(ErrorMessage = "GrantInfoList不能为空")]
public override List GrantInfoList { get; set; }
}
///
/// 角色授权用户参数
///
public class GrantUserInput
{
///
/// Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public long Id { get; set; }
///
/// 授权权限信息
///
[Required(ErrorMessage = "GrantInfoList不能为空")]
public List GrantInfoList { get; set; }
}
///
/// 角色选择器参数
///
public class RoleSelectorInput : BasePageInput
{
///
/// 组织ID
///
public long OrgId { get; set; }
///
/// 机构ID列表
///
public List OrgIds { get; set; }
///
/// 角色名称
///
public string Name { get; set; }
}
public class RoleTreeInput
{
///
/// 机构ID列表
///
public List OrgIds { get; set; }
}