using Infrastructure.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "产品")] public class Product : BaseEntity { [Display(Name = "产品名称")] public string Name { get; set; } [Display(Name = "产品型号")] [Required] public string Number { get; set; } [Display(Name = "图标")] public string Icon { get; set; } [Display(Name = "ApiJson")] public string ApiJson { get; set; } [Display(Name = "产品分类")] public Guid CategoryId { get; set; } public Category Category { get; set; } public List Devices { get; set; } = new List(); public List Apis { get; set; } = new List(); } }