fix 增加部署点位返回

This commit is contained in:
2024-11-19 09:29:13 +08:00
parent fdd70ec871
commit 7934ef5845
2 changed files with 9 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ public class DevicesController : ControllerBase
.Select((x, xr) => new DeviceResponse .Select((x, xr) => new DeviceResponse
{ {
DeviceNo = x.UniqueNo, DeviceNo = x.UniqueNo,
DeployPlace = x.DeployPlace,
HeartbeatInterval = x.HeartbeatInterval, HeartbeatInterval = x.HeartbeatInterval,
DirectionType = x.DeployDirection, DirectionType = x.DeployDirection,
LastHeartbeatTime = xr.LastHeartbeatTime, LastHeartbeatTime = xr.LastHeartbeatTime,

View File

@@ -11,19 +11,23 @@ public class DeviceResponse
/// </summary> /// </summary>
public int HeartbeatInterval { get; set; } public int HeartbeatInterval { get; set; }
/// <summary> /// <summary>
/// 设备类型, 1:门禁, 3:考勤 /// 设备类型, 1:门禁, 3:考勤
/// </summary> /// </summary>
public DeviceTypeEnumType Type { get; set; } public DeviceTypeEnumType Type { get; set; }
/// <summary> /// <summary>
/// 部署方向,10:进;20:出 /// 部署方向,10:进;20:出
/// </summary> /// </summary>
public DeviceDeployDirectionEnumType? DirectionType { get; set; } public DeviceDeployDirectionEnumType? DirectionType { get; set; }
/// <summary>
/// 部署点位
/// </summary>
public string DeployPlace { get; set; }
/// <summary> /// <summary>
/// 最后心跳时间 /// 最后心跳时间
/// </summary> /// </summary>