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