修复变量值不更新的问题
This commit is contained in:
46
DMS.Application/Interfaces/IMqttManagementService.cs
Normal file
46
DMS.Application/Interfaces/IMqttManagementService.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
|
||||
public interface IMqttManagementService
|
||||
{
|
||||
/// <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);
|
||||
|
||||
/// <summary>
|
||||
/// 在内存中添加MQTT服务器
|
||||
/// </summary>
|
||||
void AddMqttServerToMemory(MqttServerDto mqttServerDto);
|
||||
|
||||
/// <summary>
|
||||
/// 在内存中更新MQTT服务器
|
||||
/// </summary>
|
||||
void UpdateMqttServerInMemory(MqttServerDto mqttServerDto);
|
||||
|
||||
/// <summary>
|
||||
/// 在内存中删除MQTT服务器
|
||||
/// </summary>
|
||||
void RemoveMqttServerFromMemory(int mqttServerId);
|
||||
}
|
||||
Reference in New Issue
Block a user