using Infrastructure.Domain; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "节点")] public class Node : BaseEntity { [Display(Name = "机构名称")] public string OrganName { get; set; } [Display(Name = "机构编号")] [Required] public string OrganNumber { get; set; } [Display(Name = "分类名称")] public string CategoryName { get; set; } [Display(Name = "分类编号")] [Required] public string CategoryNumber { get; set; } [Display(Name = "节点名称")] public string Name { get; set; } [Display(Name = "节点编号")] [Required] public string Number { get; set; } [Display(Name = "在线")] public bool IsOnline { get; set; } [Display(Name = "图片")] public string Image { get; set; } [Display(Name = "版本")] public string Version { get; set; } [Display(Name = "序号")] public int DisplayOrder { get; set; } [Display(Name = "隐藏")] public bool Hidden { get; set; } public List Devices { get; set; } = new List(); public List Scenes { get; set; } = new List(); } }