Files
ThingsGateway/framework/ThingsGateway.Admin.Application/System/Services/Resource/Dto/ResourceOutput.cs

72 lines
1.8 KiB
C#
Raw Normal View History

2023-05-23 23:54:28 +08:00
#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权除特别声明外的代码归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
2023-07-16 17:48:22 +08:00
// Gitee源代码仓库https://gitee.com/diego2098/ThingsGateway
2023-05-23 23:54:28 +08:00
// Github源代码仓库https://github.com/kimdiego2098/ThingsGateway
2023-07-16 17:48:22 +08:00
// 使用文档https://diego2098.gitee.io/thingsgateway-docs/
2023-05-23 23:54:28 +08:00
// QQ群605534569
//------------------------------------------------------------------------------
#endregion
2023-08-07 15:09:53 +08:00
namespace ThingsGateway.Admin.Application;
/// <summary>
2023-08-07 15:09:53 +08:00
/// 角色按钮资源
/// </summary>
2023-08-07 15:09:53 +08:00
public class RoleGrantResourceButton
{
/// <summary>
2023-08-07 15:09:53 +08:00
/// 按钮id
/// </summary>
2023-08-07 15:09:53 +08:00
public long Id { get; set; }
/// <summary>
2023-08-07 15:09:53 +08:00
/// 标题
/// </summary>
2023-08-07 15:09:53 +08:00
public string Title { get; set; }
}
/// <summary>
2023-08-07 15:09:53 +08:00
/// 授权菜单类
/// </summary>
2023-08-07 15:09:53 +08:00
public class RoleGrantResourceMenu
{
/// <summary>
2023-08-07 15:09:53 +08:00
/// 菜单下按钮集合
/// </summary>
2023-08-07 15:09:53 +08:00
public List<RoleGrantResourceButton> Button { get; set; } = new List<RoleGrantResourceButton>();
/// <summary>
2023-08-07 15:09:53 +08:00
/// 菜单id
/// </summary>
2023-08-07 15:09:53 +08:00
public long Id { get; set; }
/// <summary>
2023-08-07 15:09:53 +08:00
/// 父id
/// </summary>
2023-08-07 15:09:53 +08:00
public long ParentId { get; set; }
/// <summary>
2023-08-07 15:09:53 +08:00
/// 父名称
/// </summary>
2023-08-07 15:09:53 +08:00
public string ParentName { get; set; }
2023-08-07 15:09:53 +08:00
/// <summary>
/// 菜单名称
/// </summary>
public string Title { get; set; }
}
2023-08-07 15:09:53 +08:00
/// <summary>
/// Blazor Server的组件路由内容
/// </summary>
public class PermissionTreeSelector
{
/// <summary>
/// 路由名称
/// </summary>
public string ApiRoute { get; set; }
}