2025-07-21 18:49:49 +08:00
|
|
|
|
|
|
|
|
|
|
using DMS.Core.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DMS.Core.Interfaces.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IVariableRepository:IBaseRepository<Variable>
|
|
|
|
|
|
{
|
2025-09-05 13:24:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 异步根据OPC UA NodeId获取单个变量实体。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="opcUaNodeId">OPC UA NodeId。</param>
|
|
|
|
|
|
/// <returns>找到的变量实体,如果不存在则返回null。</returns>
|
|
|
|
|
|
Task<Variable?> GetByOpcUaNodeIdAsync(string opcUaNodeId);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 异步根据OPC UA NodeId列表获取变量实体列表。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="opcUaNodeIds">OPC UA NodeId列表。</param>
|
|
|
|
|
|
/// <returns>找到的变量实体列表。</returns>
|
|
|
|
|
|
Task<List<Variable>> GetByOpcUaNodeIdsAsync(List<string> opcUaNodeIds);
|
2025-07-21 18:49:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|