Files
jinko.yikatong/Src/Dlhis.Basic/Device/Response/DeviceGroupPageResponse.cs
2024-02-22 17:53:06 +08:00

44 lines
848 B
C#

using Dlhis.Entity.Device.Enums;
using Kurisu.AspNetCore.Utils.Extensions;
namespace Dlhis.Basic.Device.Response;
public class DeviceGroupPageResponse
{
/// <summary>
/// 设备分组code
/// </summary>
public Guid Code { get; set; }
/// <summary>
/// 设备组名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 分组类型
/// </summary>
public DeviceTypeEnumType? Type { get; set; }
/// <summary>
/// 是否可编辑
/// </summary>
public bool Editable { get; set; }
/// <summary>
/// 分组类型描述
/// </summary>
public string TypeDesc
{
get
{
if (!Type.HasValue)
{
return string.Empty;
}
return Type.Value.GetDescription();
}
}
}