using Dlhis.Entity.Device.Enums;
using Kurisu.AspNetCore.Utils.Extensions;
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();
}
}
///
/// 下级
///
public List Next { get; set; } = new();
}