using Dlhis.Entity.Device.Enums; using Kurisu.AspNetCore.Utils.Extensions; using Newtonsoft.Json; namespace Dlhis.Basic.Device.Response; public class DeviceGroupTreeResponse { public long Id { get; set; } /// /// 上级分组code /// public Guid? PCode { get; set; } /// /// 分组code/设备code /// public Guid Code { get; set; } /// /// 分组名称/设备名称 /// public string Name { get; set; } /// /// 设备组类型 /// public DeviceTypeEnumType? Type { get; set; } /// /// 分组类型描述 /// public string TypeDesc { get { if (!Type.HasValue) { return string.Empty; } return Type.Value.GetDescription(); } } [JsonIgnore] public string TenantId { get; set; } /// /// 下级 /// public List Next { get; set; } = new(); }