feat(menu): 添加菜单树构建功能和相关接口

This commit is contained in:
wcg
2026-01-04 11:02:13 +08:00
parent f77c775229
commit 80d8ac2bc8
4 changed files with 71 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
using Yi.Framework.Core.Helper;
using Yi.Framework.Rbac.Domain.Shared.Enums;
namespace Yi.Framework.Rbac.Domain.Shared.Dtos;
public class MenuTreeDto: TreeHelper.ITreeModel<MenuTreeDto>
{
public Guid Id { get; set; }
public Guid ParentId { get; set; }
public int OrderNum { get; set; }
public string MenuName { get; set; } = string.Empty;
public MenuTypeEnum MenuType { get; set; } = MenuTypeEnum.Menu;
public string? MenuIcon { get; set; }
public List<MenuTreeDto>? Children { get; set; }
}