IotBase.cs 792 Bytes
using System.Text.Json.Serialization;

namespace DataAcquisition.ViewModels.IOT
{
    public class IotBase
    {
        /// <summary>
        /// 唯一标识Id
        /// </summary>
        public string Plmeid { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 厂房编码
        /// </summary>
        [JsonPropertyName("factory_code")]
        public string FactoryCode { get; set; } = null!;

        /// <summary>
        /// 设备编码
        /// </summary>
        [JsonPropertyName("equipment_code")]
        public string EquipmentCode { get; set; } = null!;

        /// <summary>
        /// 设备编码
        /// </summary>
        [JsonPropertyName("equipment_name")]
        public string EquipmentName { get; set; } = null!;
    }
}