- 删除了 DMS.Application/DTOs/MenuBeanDto.cs 文件 - 在DTOs中将MenuBeanDto类型替换为MenuBean类型 - 更新了IMenuAppService和IMenuManagementService接口中相关方法的参数和返回值类型 - 修改了MenuAppService、MenuManagementService等服务类的实现 - 在DMS.Core/Models/MenuBean.cs中添加了Children属性以支持菜单树结构 - 更新了WPF层相关的菜单处理逻辑 - 修改了映射配置和视图模型中的菜单对象创建方式 - 这一更改简化了数据模型,消除了DTO与模型之间的重复定义,直接在各层之间使用MenuBean实体。
20 lines
476 B
C#
20 lines
476 B
C#
using DMS.Core.Models;
|
|
|
|
namespace DMS.Application.DTOs
|
|
{
|
|
/// <summary>
|
|
/// 创建MQTT服务器及其关联菜单的数据传输对象
|
|
/// </summary>
|
|
public class CreateMqttWithMenuDto
|
|
{
|
|
/// <summary>
|
|
/// MQTT服务器信息
|
|
/// </summary>
|
|
public MqttServer MqttServer { get; set; }
|
|
|
|
/// <summary>
|
|
/// 菜单项信息
|
|
/// </summary>
|
|
public MenuBean MqttServerMenu { get; set; }
|
|
}
|
|
} |