2025-04-22 21:01:28 +08:00
|
|
|
|
using JiShe.CollectBus.IotSystems.Protocols;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Volo.Abp;
|
|
|
|
|
|
|
|
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.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);
|
2025-04-22 21:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|