refactor:删除了DeviceDto,VariableDto,VariableTableDto,改为使用DMS.Core中的实体

This commit is contained in:
2025-10-07 17:51:24 +08:00
parent 94ad940e03
commit b753e5ea73
52 changed files with 291 additions and 463 deletions

View File

@@ -1,5 +1,6 @@
using DMS.Application.DTOs;
using DMS.Application.Events;
using DMS.Core.Models;
namespace DMS.Application.Interfaces.Management;
@@ -10,13 +11,11 @@ public interface IDeviceManagementService
/// <summary>
/// 异步根据ID获取设备DTO。
/// </summary>
Task<DeviceDto> GetDeviceByIdAsync(int id);
Task<Device> GetDeviceByIdAsync(int id);
/// <summary>
/// 异步获取所有设备DTO列表。
/// </summary>
Task<List<DeviceDto>> GetAllDevicesAsync();
Task<List<Device>> GetAllDevicesAsync();
/// <summary>
/// 异步创建一个新设备及其关联的变量表和菜单(事务性操作)。
/// </summary>
@@ -25,8 +24,7 @@ public interface IDeviceManagementService
/// <summary>
/// 异步更新一个已存在的设备。
/// </summary>
Task<int> UpdateDeviceAsync(DeviceDto deviceDto);
Task<int> UpdateDeviceAsync(Device device);
/// <summary>
/// 异步删除一个设备。
/// </summary>