Files
16-Xikai-MesProjectNew/Interface_WebAPI/SlMesDbIterface/WebAPI/WEB/WEB_Models.cs
2026-05-29 09:34:04 +08:00

67 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}
}