chore: initial commit
This commit is contained in:
67
Interface_WebAPI/SlMesDbIterface/WebAPI/WEB/WEB_Models.cs
Normal file
67
Interface_WebAPI/SlMesDbIterface/WebAPI/WEB/WEB_Models.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace MisDataSaveDate
|
||||
{
|
||||
/// <summary>
|
||||
/// WEB请求类型
|
||||
/// </summary>
|
||||
public class WEB_Request
|
||||
{
|
||||
/// <summary>
|
||||
/// Type 操作类型 用来区分Web的各操作
|
||||
/// </summary>
|
||||
public string type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参数对象 根据Type 会传递不同的参数
|
||||
/// 使用JObject可以接收任意JSON结构的数据,无需定义实体类
|
||||
/// </summary>
|
||||
public JObject paramObj { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PLC点位值返回结果
|
||||
/// </summary>
|
||||
public class PLCTagValueResult
|
||||
{
|
||||
/// <summary>
|
||||
/// TagTypeCodeID
|
||||
/// </summary>
|
||||
public int TagTypeCodeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否读取成功
|
||||
/// </summary>
|
||||
public bool Success { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 点位值
|
||||
/// </summary>
|
||||
public object TagValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 点位名称
|
||||
/// </summary>
|
||||
public string TagName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工位号
|
||||
/// </summary>
|
||||
public string OpName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间戳
|
||||
/// </summary>
|
||||
public string TimeStamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息(错误时返回错误信息)
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user