feat: 菜单管理重构及MQTT服务器功能增强

This commit is contained in:
2025-10-05 17:07:17 +08:00
parent 80ea47e627
commit 6b55211dbf
23 changed files with 287 additions and 184 deletions

View File

@@ -22,27 +22,12 @@ public interface IMenuManagementService
/// <summary>
/// 异步更新一个已存在的菜单。
/// </summary>
Task UpdateMenuAsync(MenuBeanDto menuDto);
Task<int> UpdateMenuAsync(MenuBeanDto menuDto);
/// <summary>
/// 异步删除一个菜单。
/// </summary>
Task DeleteMenuAsync(int id);
/// <summary>
/// 在内存中添加菜单
/// </summary>
void AddMenuToMemory(MenuBeanDto menuDto);
/// <summary>
/// 在内存中更新菜单
/// </summary>
void UpdateMenuInMemory(MenuBeanDto menuDto);
/// <summary>
/// 在内存中删除菜单
/// </summary>
void RemoveMenuFromMemory(int menuId);
Task<bool> DeleteMenuAsync(int id);
/// <summary>
/// 获取根菜单列表
@@ -60,4 +45,9 @@ public interface IMenuManagementService
/// 构建菜单树结构
/// </summary>
void BuildMenuTree();
/// <summary>
/// 当菜单数据发生变化时触发
/// </summary>
event EventHandler<DMS.Application.Events.MenuChangedEventArgs> MenuChanged;
}