using System.ComponentModel; using IDIS.Model; using Newtonsoft.Json; namespace IDIS.YL106.Model { /// /// 实体,用于描述产品的信息 /// public record Object_Product:IDIS_Model { /// /// 产品名称 /// [DisplayName("产品名称")] [JsonProperty("product_name")] public string ProductName { get; set; } = string.Empty; /// /// 产品类型 /// [DisplayName("产品类型")] [JsonProperty("product_type")] public string ProductType { get; set; }= string.Empty; /// /// 订单标识 /// [DisplayName("订单标识")] [JsonProperty("order_handle")] public string OrderHandle { get; set; }= string.Empty; /// /// 生产日期 /// [DisplayName("生产日期")] [JsonProperty("manufacture_date")] public DateTime ManufactureDate { get; set; } = DateTime.MinValue; /// /// 批次号 /// [DisplayName("批次号")] [JsonProperty("batch_number")] public string BatchNumber { get; set; }= string.Empty; /// /// 注意事项 (默认值: "请勿将移动电源放入水中") /// [DisplayName("注意事项")] [JsonProperty("note")] public string Note { get; set; } = "请不要在用力弯曲或者误食笔芯"; } }