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