2025-09-09 15:28:07 +08:00
|
|
|
|
using System.Collections.Concurrent;
|
|
|
|
|
|
using DMS.Application.DTOs;
|
2025-10-06 17:25:05 +08:00
|
|
|
|
using DMS.Core.Models;
|
2025-09-09 15:28:07 +08:00
|
|
|
|
|
|
|
|
|
|
namespace DMS.Application.Interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IAppDataStorageService
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有设备数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, DeviceDto> Devices { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有变量表数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, VariableTableDto> VariableTables { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有变量数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, VariableDto> Variables { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有菜单数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, MenuBeanDto> Menus { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有菜单数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, MenuBeanDto> MenuTrees { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有MQTT服务器数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, MqttServerDto> MqttServers { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有日志数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, NlogDto> Nlogs { get; }
|
2025-09-09 17:47:20 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有MQTT变量别名的数据
|
|
|
|
|
|
/// </summary>
|
2025-10-06 17:25:05 +08:00
|
|
|
|
ConcurrentDictionary<int, VariableMqttAlias> VariableMqttAliases { get; }
|
2025-09-23 05:48:21 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 安全字典,用于存储所有触发器定义数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ConcurrentDictionary<int, TriggerDefinitionDto> Triggers { get; }
|
2025-09-09 15:28:07 +08:00
|
|
|
|
}
|