31 lines
971 B
C#
Raw Permalink Normal View History

using JiShe.CollectBus.IotSystems.Protocols;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
2025-04-25 13:42:08 +08:00
namespace JiShe.CollectBus.Protocol.Interfaces
{
public interface IProtocolService
{
/// <summary>
/// 通过仪器设备型号获取协议信息
/// </summary>
/// <param name="deviceCode"></param>
/// <param name="isSpecial"></param>
/// <returns></returns>
/// <exception cref="UserFriendlyException"></exception>
Task<ProtocolInfo> FirstOrDefaultByDeviceAsync(string deviceCode, bool isSpecial = false);
2025-04-23 15:10:20 +08:00
/// <summary>
/// 获取协议池服务
/// </summary>
/// <param name="deviceCode"></param>
/// <param name="isSpecial"></param>
/// <returns></returns>
Task<IProtocolPlugin?> GetProtocolServiceAsync(string deviceCode, bool isSpecial = false);
}
}