using Infrastructure.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "产品")] [Scope] [Module("物联管控", "IoTCenter")] public class IoTProduct : BaseEntity { [Display(Name = "产品名称")] public string Name { get; set; } [Display(Name = "产品型号")] [Required(ErrorMessage = nameof(RequiredAttribute))] public string Number { get; set; } [Display(Name = "图标")] public string Image { get; set; } public string Template { get; set; } [Display(Name = "路径")] public string Path { get; set; } [Display(Name = "ApiJson")] public string ApiJson { get; set; } [Display(Name = "序号")] public int Order { get; set; } public Guid? IoTProductCategoryId { get; set; } public IoTProductCategory IoTProductCategory { get; set; } public List IoTDevices { get; set; } = new List(); public List IoTApis { get; set; } = new List(); } }