IotEquipment.cs 1.97 KB
using System.Text.Json.Serialization;

namespace DataAcquisition.ViewModels.IOT
{
    public class IotEquipment: IotBase
    {
        /// <summary>
        /// 设备类型编码
        /// </summary>
        [JsonPropertyName("equipmentType_code")]
        public string EquipmentTypeCode { get; set; } = null!;

        /// <summary>
        /// 设备类型名称
        /// </summary>
        [JsonPropertyName("equipmentType_name")]
        public string EquipmentTypeName { get; set; } = null!;

        /// <summary>
        /// 设备IP地址
        /// </summary>
        public string IP { get; set; } = null!;

        /// <summary>
        /// 区域
        /// </summary>
        [JsonPropertyName("destination_area")]
        public string DestinationArea { get; set; } = null!;

        /// <summary>
        /// 描述
        /// </summary>
        [JsonPropertyName("remark")]
        public string Remark { get; set; } = null!;

        /// <summary>
        /// 是否启用
        /// </summary>
        /// <remarks>0:禁用,1:启用</remarks>
        [JsonPropertyName("IsDelete")]
        public int IsEnable { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        /// <remarks>I:新增,U:修改,D:删除</remarks>
        public string Type { get; set; } = null!;

        /// <summary>
        /// 扩展列1
        /// </summary>
        [JsonPropertyName("extend_col1")]
        public string ExtendCol1 { get; set; } = null!;

        /// <summary>
        /// 扩展列2
        /// </summary>
        [JsonPropertyName("extend_col2")]
        public string ExtendCol2 { get; set; } = null!;

        /// <summary>
        /// 扩展列3
        /// </summary>
        [JsonPropertyName("extend_col3")]
        public string ExtendCol3 { get; set; } = null!;

        /// <summary>
        /// 扩展列4
        /// </summary>
        [JsonPropertyName("extend_col4")]
        public string ExtendCol4 { get; set; } = null!;
    }
}