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
{
DeviceNo = x.UniqueNo,
DeployPlace = x.DeployPlace,
HeartbeatInterval = x.HeartbeatInterval,
DirectionType = x.DeployDirection,
LastHeartbeatTime = xr.LastHeartbeatTime,

View File

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