feat: 完成ruoyi、pure菜单兼容
This commit is contained in:
@@ -195,6 +195,11 @@ namespace Yi.Framework.Rbac.Domain.Shared.Dtos
|
||||
public class MenuDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
/// <summary>
|
||||
/// 菜单来源
|
||||
/// </summary>
|
||||
public MenuSourceEnum MenuSource { get; set; }
|
||||
public string? RouterName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 逻辑删除
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
|
||||
public class Vue3PureRouterDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid ParentId { get; set; }
|
||||
public string Path { get; set; }
|
||||
public string Name { get; set; }
|
||||
public MetaPureRouterDto Meta { get; set; } = new MetaPureRouterDto();
|
||||
|
||||
|
||||
public string? component { get; set; }
|
||||
public List<Vue3PureRouterDto>? Children { get; set; }
|
||||
}
|
||||
|
||||
@@ -14,11 +17,6 @@ public class MetaPureRouterDto
|
||||
public string Icon { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public string Rank { get; set; }
|
||||
|
||||
public List<string>? Roles { get; set; }
|
||||
|
||||
public List<string>? Auths { get; set; }
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
public enum MenuSourceEnum
|
||||
{
|
||||
Ruoyi=0,
|
||||
Pure=1
|
||||
}
|
||||
Reference in New Issue
Block a user