using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Infrastructure.Domain; namespace Application.Domain.Entities { /// /// 设备 /// [Display(Name = "设备")] public class Device : BaseEntity, IDisableRemove { /// /// 名称 /// public string Name { get; set; } /// /// 显示名称 /// public string DisplayName { get; set; } /// /// 编号 /// public string Number { get; set; } /// /// 分类编号 /// public string CategoryNumber { get; set; } /// /// 分类 /// public string CategoryName { get; set; } /// /// 图标 /// public string Icon { get; set; } /// /// Url /// public string BaseUrl { get; set; } /// /// Api Path /// public string ApiPath { get; set; } /// /// Open API Json /// public string ApiJson { get; set; } /// /// 在线状态 /// public bool IsOnline { get; set; } /// /// 节点Id /// public Guid NodeId { get; set; } /// /// 节点 /// public Node Node { get; set; } /// /// 数据 /// public List Data { get; set; } = new List(); /// /// API /// public List Apis { get; set; } = new List(); } }