chore: 初始化平芝126KV总装线 WebApi

This commit is contained in:
yexingqiang
2026-06-08 17:19:25 +08:00
commit 437c251f58
126 changed files with 5439 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace WebApi.Models
{
public class TightenTool
{
public readonly object TcpClientLock = new object();
/// <summary>
/// 工位号
/// </summary>
public string OpName
{
get;
set;
}
/// <summary>
/// 拧紧枪名称
/// </summary>
public string Name
{
get;
set;
}
/// <summary>
/// IP
/// </summary>
public string IP
{
get;
set;
}
/// <summary>
/// 端口号
/// </summary>
public string Port
{
get;
set;
}
/// <summary>
/// TPC客户端
/// </summary>
public TcpClient TcpClient
{
get;
set;
}
/// <summary>
/// 安全判断TcpClient是否已连接
/// </summary>
public bool IsConnected
{
get { return TcpClient != null && TcpClient.Connected; }
}
}
}