refactor:删除了DeviceDto,VariableDto,VariableTableDto,改为使用DMS.Core中的实体
This commit is contained in:
@@ -12,13 +12,11 @@ public interface IDeviceAppService
|
||||
/// <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>
|
||||
@@ -29,8 +27,7 @@ public interface IDeviceAppService
|
||||
/// <summary>
|
||||
/// 异步更新一个已存在的设备。
|
||||
/// </summary>
|
||||
Task<int> UpdateDeviceAsync(DeviceDto deviceDto);
|
||||
|
||||
Task<int> UpdateDeviceAsync(Device device);
|
||||
/// <summary>
|
||||
/// 异步删除一个设备。
|
||||
/// </summary>
|
||||
@@ -49,5 +46,4 @@ public interface IDeviceAppService
|
||||
/// <summary>
|
||||
/// 异步获取指定协议类型的设备列表。
|
||||
/// </summary>
|
||||
Task<List<DeviceDto>> GetDevicesByProtocolAsync(ProtocolType protocol);
|
||||
}
|
||||
Task<List<Device>> GetDevicesByProtocolAsync(ProtocolType protocol);}
|
||||
Reference in New Issue
Block a user