refactor:删除MqttServerDto,将使用MqttServerDto的全部转为使用MqttServer
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Core.Models;
|
||||
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
@@ -9,29 +8,29 @@ namespace DMS.Application.Interfaces.Database;
|
||||
public interface IMqttAppService
|
||||
{
|
||||
/// <summary>
|
||||
/// 异步根据ID获取MQTT服务器DTO。
|
||||
/// 异步根据ID获取MQTT服务器。
|
||||
/// </summary>
|
||||
Task<MqttServerDto> GetMqttServerByIdAsync(int id);
|
||||
Task<MqttServer> GetMqttServerByIdAsync(int id);
|
||||
|
||||
/// <summary>
|
||||
/// 异步获取所有MQTT服务器DTO列表。
|
||||
/// 异步获取所有MQTT服务器列表。
|
||||
/// </summary>
|
||||
Task<List<MqttServerDto>> GetAllMqttServersAsync();
|
||||
Task<List<MqttServer>> GetAllMqttServersAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 异步创建一个新的MQTT服务器。
|
||||
/// </summary>
|
||||
Task<int> CreateMqttServerAsync(MqttServerDto mqttServerDto);
|
||||
Task<int> CreateMqttServerAsync(MqttServer mqttServer);
|
||||
|
||||
/// <summary>
|
||||
/// 异步更新一个已存在的MQTT服务器。
|
||||
/// </summary>
|
||||
Task UpdateMqttServerAsync(MqttServerDto mqttServerDto);
|
||||
Task UpdateMqttServerAsync(MqttServer mqttServer);
|
||||
|
||||
/// <summary>
|
||||
/// 异步批量更新MQTT服务器。
|
||||
/// </summary>
|
||||
Task<int> UpdateMqttServersAsync(List<MqttServerDto> mqttServerDtos);
|
||||
Task<int> UpdateMqttServersAsync(List<MqttServer> mqttServers);
|
||||
|
||||
/// <summary>
|
||||
/// 异步根据ID删除一个MQTT服务器。
|
||||
|
||||
Reference in New Issue
Block a user