using DMS.Core.Models; namespace DMS.Application.Interfaces.Database; /// /// 定义MQTT服务器管理相关的应用服务操作。 /// public interface IMqttAppService { /// /// 异步根据ID获取MQTT服务器。 /// Task GetMqttServerByIdAsync(int id); /// /// 异步获取所有MQTT服务器列表。 /// Task> GetAllMqttServersAsync(); /// /// 异步创建一个新的MQTT服务器。 /// Task CreateMqttServerAsync(MqttServer mqttServer); /// /// 异步更新一个已存在的MQTT服务器。 /// Task UpdateMqttServerAsync(MqttServer mqttServer); /// /// 异步批量更新MQTT服务器。 /// Task UpdateMqttServersAsync(List mqttServers); /// /// 异步根据ID删除一个MQTT服务器。 /// Task DeleteMqttServerAsync(int id); /// /// 异步批量删除MQTT服务器。 /// Task DeleteMqttServersAsync(List ids); }