34 lines
917 B
C#
34 lines
917 B
C#
using DMS.Application.DTOs;
|
|
|
|
namespace DMS.Application.Interfaces.Database;
|
|
|
|
/// <summary>
|
|
/// 定义MQTT服务器管理相关的应用服务操作。
|
|
/// </summary>
|
|
public interface IMqttAppService
|
|
{
|
|
/// <summary>
|
|
/// 异步根据ID获取MQTT服务器DTO。
|
|
/// </summary>
|
|
Task<MqttServerDto> GetMqttServerByIdAsync(int id);
|
|
|
|
/// <summary>
|
|
/// 异步获取所有MQTT服务器DTO列表。
|
|
/// </summary>
|
|
Task<List<MqttServerDto>> GetAllMqttServersAsync();
|
|
|
|
/// <summary>
|
|
/// 异步创建一个新的MQTT服务器。
|
|
/// </summary>
|
|
Task<int> CreateMqttServerAsync(MqttServerDto mqttServerDto);
|
|
|
|
/// <summary>
|
|
/// 异步更新一个已存在的MQTT服务器。
|
|
/// </summary>
|
|
Task UpdateMqttServerAsync(MqttServerDto mqttServerDto);
|
|
|
|
/// <summary>
|
|
/// 异步删除一个MQTT服务器。
|
|
/// </summary>
|
|
Task DeleteMqttServerAsync(int id);
|
|
} |