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

@@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using DMS.Application.DTOs;
using DMS.Core.Models;
using DMS.Infrastructure.Services;
using DMS.Infrastructure.Services.S7;
@@ -21,7 +21,7 @@ namespace DMS.Infrastructure.Interfaces.Services
/// <summary>
/// 添加设备到监控列表
/// </summary>
void AddDevice(DeviceDto device);
void AddDevice(DMS.Core.Models.Device device);
/// <summary>
/// 移除设备监控
@@ -31,7 +31,7 @@ namespace DMS.Infrastructure.Interfaces.Services
/// <summary>
/// 更新设备变量
/// </summary>
void UpdateVariables(int deviceId, List<VariableDto> variables);
void UpdateVariables(int deviceId, List<Variable> variables);
/// <summary>
/// 获取设备连接状态