You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
using Infrastructure.Domain;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Domain.Entities
|
|
{
|
|
[Display(Name = "网关")]
|
|
[Scope]
|
|
[Group("物联管控", "IoTCenter")]
|
|
public class IoTGateway : BaseEntity
|
|
{
|
|
[Display(Name = "节点名称")]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "节点编号")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
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<IoTDevice> Devices { get; set; } = new List<IoTDevice>();
|
|
//public List<IoTScene> Scenes { get; set; } = new List<IoTScene>();
|
|
//public List<IoTGatewayCategoryIoTGateway> CategoryNodes { get; set; } = new List<IoTGatewayCategoryIoTGateway>();
|
|
//public List<BuildingIoTGateway> BuildingIoTGateways { get; set; } = new List<BuildingIoTGateway>();
|
|
}
|
|
}
|