using DMS.Core.Models; namespace DMS.Core.Interfaces; public interface IVariableMqttAliasRepository : IBaseRepository { /// /// 异步获取指定变量的所有MQTT别名关联,并加载关联的MQTT服务器信息。 /// /// 变量ID。 /// 指定变量的所有MQTT别名关联列表。 Task> GetAliasesForVariableAsync(int variableId); /// /// 异步根据变量ID和MQTT服务器ID获取特定的MQTT别名关联。 /// /// 变量ID。 /// MQTT服务器ID。 /// 匹配的VariableMqttAlias对象,如果不存在则为null。 Task GetByVariableAndServerAsync(int variableId, int mqttServerId); }