using IoT.Shared.Application.Models; using System; using System.ComponentModel.DataAnnotations; namespace Platform.Application.Models.IoTCenter { [Display(Name = "网关")] public class EditPlatformIoTDeviceModel : EditIoTDeviceModel { [Display(Name = "机构")] [SelectList(nameof(BuildingId), "GetBuilding")] [ReadOnlyForEdit] public Guid? OrganId { get; set; } [Display(Name = "建筑")] [SelectList(nameof(NodeId), "GetIoTGateway")] [ReadOnlyForEdit] public Guid? BuildingId { get; set; } [Display(Name = "分类")] [ReadOnlyForEdit] [SelectList(nameof(ProductId), "GetIoTProductByCategory")] public Guid? CategoryId { get; set; } } }