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

@@ -23,6 +23,10 @@ public class DeviceResponse
/// </summary>
public DeviceDeployDirectionEnumType? DirectionType { get; set; }
/// <summary>
/// 部署点位
/// </summary>
public string DeployPlace { get; set; }
/// <summary>
/// 最后心跳时间