44 lines
848 B
C#
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();
|
|
}
|
|
}
|
|
}
|