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