refactor: 移除MenuBeanDto,直接使用MenuBean模型
- 删除了 DMS.Application/DTOs/MenuBeanDto.cs 文件 - 在DTOs中将MenuBeanDto类型替换为MenuBean类型 - 更新了IMenuAppService和IMenuManagementService接口中相关方法的参数和返回值类型 - 修改了MenuAppService、MenuManagementService等服务类的实现 - 在DMS.Core/Models/MenuBean.cs中添加了Children属性以支持菜单树结构 - 更新了WPF层相关的菜单处理逻辑 - 修改了映射配置和视图模型中的菜单对象创建方式 - 这一更改简化了数据模型,消除了DTO与模型之间的重复定义,直接在各层之间使用MenuBean实体。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Core.Enums;
|
||||
using DMS.Core.Models;
|
||||
|
||||
namespace DMS.Application.Events
|
||||
{
|
||||
@@ -14,17 +14,17 @@ namespace DMS.Application.Events
|
||||
public DataChangeType ChangeType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单DTO
|
||||
/// 菜单
|
||||
/// </summary>
|
||||
public MenuBeanDto Menu { get; }
|
||||
public MenuBean Menu { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="changeType">变更类型</param>
|
||||
/// <param name="menu">菜单DTO</param>
|
||||
/// <param name="parentMenu">父级菜单DTO</param>
|
||||
public MenuChangedEventArgs(DataChangeType changeType, MenuBeanDto menu)
|
||||
/// <param name="menu">菜单</param>
|
||||
/// <param name="parentMenu">父级菜单</param>
|
||||
public MenuChangedEventArgs(DataChangeType changeType, MenuBean menu)
|
||||
{
|
||||
ChangeType = changeType;
|
||||
Menu = menu;
|
||||
|
||||
Reference in New Issue
Block a user