using Admin.NET.Core; using System.ComponentModel.DataAnnotations; namespace Admin.NET.Application; /// /// 授权角色参数 /// public class GrantRolePdaMenuInput : IXnInputBase { /// /// 角色Id /// [Required(ErrorMessage = "角色Id不能为空")] public long Id { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 编码 /// public string Code { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 数据范围类型(字典 1全部数据 2本部门及以下数据 3本部门数据 4仅本人数据 5自定义数据) /// public int DataScopeType { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 授权角色菜单列表 /// public List GrantMenuIdList { get; set; } /// /// 授权角色ID列表 /// public List GrantRoleIdList { get; set; } /// /// 授权组织ID列表 /// public List GrantOrgIdList { get; set; } } /// /// 通用输入扩展参数(带权限) /// public interface IXnInputBase { /// /// 授权菜单 /// public List GrantMenuIdList { get; set; } /// /// 授权角色 /// public List GrantRoleIdList { get; set; } /// /// 授权数据 /// public List GrantOrgIdList { get; set; } }