21 lines
640 B
C#
21 lines
640 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using YunDa.SOMS.DataTransferObject;
|
|
|
|
namespace YunDa.Server.ISMSTcp.Services
|
|
{
|
|
/// <summary>
|
|
/// 孪生体ID API服务接口
|
|
/// </summary>
|
|
public interface ITwinIdApiService
|
|
{
|
|
/// <summary>
|
|
/// 通过孪生体代码获取设备信息ID
|
|
/// </summary>
|
|
/// <param name="code">孪生体代码</param>
|
|
/// <param name="cancellationToken">取消令牌</param>
|
|
/// <returns>设备信息ID</returns>
|
|
Task<RequestResult<System.Guid>> GetTwIdAsync(string code, CancellationToken cancellationToken = default);
|
|
}
|
|
}
|