113 lines
3.6 KiB
C#
113 lines
3.6 KiB
C#
using Dlhis.DataPermission.Model;
|
|
using Dlhis.Entity.Device.Enums;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Basic.Device.Response;
|
|
|
|
public class ElevatorAcsDetailResponse
|
|
{
|
|
/// <summary>
|
|
/// 设备code
|
|
/// </summary>
|
|
[DeviceCode]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "设备code")]
|
|
public Guid Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备唯一码,IP/MAC/SNO
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "设备唯一码", UniqueGroupNameList = new[] { "Idx_Device_UniqueNo" })]
|
|
public string UniqueNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 心跳间隔
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "心跳检查间隔")]
|
|
public int HeartbeatInterval { get; set; } = 30;
|
|
|
|
/// <summary>
|
|
/// 供应商
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "供应商")]
|
|
public string Supplier { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备功能
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(150)", IsJson = true, ColumnDescription = "设备功能", DefaultValue = "[]")]
|
|
public List<DeviceFuncEnumType> Funcs { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备类型
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "设备类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceTypeEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 部署点
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "部署点")]
|
|
public string DeployPlace { get; set; }
|
|
|
|
/// <summary>
|
|
/// 部署坐标
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "部署坐标")]
|
|
public string DeployPosition { get; set; }
|
|
|
|
/// <summary>
|
|
/// 部署方向
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "部署方向", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceDeployDirectionEnumType? DeployDirection { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模板code
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "模板code")]
|
|
public Guid TemplateCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 连接信息
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "连接信息")]
|
|
public string ConnectionInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否启用")]
|
|
public bool Enable { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 是否作为考勤设备
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否作为考勤设备")]
|
|
public bool AsAttendance { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 是否启用时段码
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否启用时段码", DefaultValue = "0")]
|
|
public bool EnableTimePeriod { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 是否为电梯门禁设备
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit", ColumnDescription = "是否为电梯门禁设备", DefaultValue = "0")]
|
|
public bool IsElevatorAcs { get; set; }
|
|
|
|
public List<ElevatorAcsFloorResponse> Floors { get; set; }
|
|
}
|
|
|
|
public class ElevatorAcsFloorResponse
|
|
{
|
|
public string FloorName { get; set; }
|
|
public string AcsValue { get; set; }
|
|
}
|