wip
This commit is contained in:
@@ -12,11 +12,11 @@ public interface IDeviceAppService
|
||||
/// <summary>
|
||||
/// 异步根据ID获取设备DTO。
|
||||
/// </summary>
|
||||
Task<Device> GetDeviceByIdAsync(int id);
|
||||
Task<Device> GetDeviceByIdAsync(int id);
|
||||
/// <summary>
|
||||
/// 异步获取所有设备DTO列表。
|
||||
/// </summary>
|
||||
Task<List<Device>> GetAllDevicesAsync();
|
||||
Task<List<Device>> GetAllDevicesAsync();
|
||||
/// <summary>
|
||||
/// 异步创建一个新设备及其关联的变量表和菜单(事务性操作)。
|
||||
/// </summary>
|
||||
@@ -27,16 +27,12 @@ public interface IDeviceAppService
|
||||
/// <summary>
|
||||
/// 异步更新一个已存在的设备。
|
||||
/// </summary>
|
||||
Task<int> UpdateDeviceAsync(Device device);
|
||||
Task<int> UpdateDeviceAsync(Device device);
|
||||
|
||||
/// <summary>
|
||||
/// 异步删除一个设备。
|
||||
/// </summary>
|
||||
Task DeleteDeviceAsync(Device device);
|
||||
|
||||
/// <summary>
|
||||
/// 异步删除一个设备。
|
||||
/// </summary>
|
||||
Task<bool> DeleteDeviceByIdAsync(int deviceId);
|
||||
Task<bool> DeleteAsync(Device device);
|
||||
|
||||
/// <summary>
|
||||
/// 异步切换设备的激活状态。
|
||||
@@ -46,4 +42,5 @@ public interface IDeviceAppService
|
||||
/// <summary>
|
||||
/// 异步获取指定协议类型的设备列表。
|
||||
/// </summary>
|
||||
Task<List<Device>> GetDevicesByProtocolAsync(ProtocolType protocol);}
|
||||
Task<List<Device>> GetDevicesByProtocolAsync(ProtocolType protocol);
|
||||
}
|
||||
Reference in New Issue
Block a user