using Dlhis.Entity.Device.Enums;
using System.ComponentModel.DataAnnotations;
namespace Dlhis.Basic.Device.Request;
public class DeviceGroupSaveRequest
{
public long? Id { get; set; }
///
/// 上级分组
///
public Guid? PCode { get; set; }
///
/// 设备组名称
///
[Required(ErrorMessage = "设备组名称不能为空")]
public string Name { get; set; }
///
/// 分类类型 DeviceTypeEnumType
///
[EnumDataType(typeof(DeviceTypeEnumType))]
public DeviceTypeEnumType? Type { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}