#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权(除特别声明外的代码)归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway
// 使用文档:https://diego2098.gitee.io/thingsgateway-docs/
// QQ群:605534569
//------------------------------------------------------------------------------
#endregion
using System.ComponentModel.DataAnnotations;
namespace ThingsGateway.Admin.Application;
///
/// 角色授权资源参数
///
public class GrantResourceInput : RoleOwnResourceOutput
{
///
/// 授权资源信息
///
[Required(ErrorMessage = "授权资源信息表不能为空")]
public override List GrantInfoList { get; set; }
///
/// 角色Id
///
[MinValue(1, ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
}
///
/// 角色授权用户参数
///
public class GrantUserInput
{
///
/// 授权权限信息
///
[Required(ErrorMessage = "GrantInfoList不能为空")]
public List GrantInfoList { get; set; }
///
/// Id
///
[Required(ErrorMessage = "Id不能为空")]
public long? Id { get; set; }
}
///
/// 角色添加参数
///
public class RoleAddInput : SysRole
{
///
/// 名称
///
[Required(ErrorMessage = "Name不能为空")]
public override string Name { get; set; }
}
///
/// 角色编辑参数
///
public class RoleEditInput : RoleAddInput
{
///
/// Id
///
[MinValue(1, ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
}
///
/// 角色查询参数
///
public class RolePageInput : BasePageInput
{
}