diff --git a/Src/Dlhis.External/OpenApi/Controllers/DeviceController.cs b/Src/Dlhis.External/OpenApi/Controllers/DeviceController.cs index e6219b55..669fa165 100644 --- a/Src/Dlhis.External/OpenApi/Controllers/DeviceController.cs +++ b/Src/Dlhis.External/OpenApi/Controllers/DeviceController.cs @@ -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, diff --git a/Src/Dlhis.External/OpenApi/Response/DeviceResponse.cs b/Src/Dlhis.External/OpenApi/Response/DeviceResponse.cs index 1bdd81a7..75fcd769 100644 --- a/Src/Dlhis.External/OpenApi/Response/DeviceResponse.cs +++ b/Src/Dlhis.External/OpenApi/Response/DeviceResponse.cs @@ -11,19 +11,23 @@ public class DeviceResponse /// public int HeartbeatInterval { get; set; } - + /// /// 设备类型, 1:门禁, 3:考勤 /// public DeviceTypeEnumType Type { get; set; } - + /// /// 部署方向,10:进;20:出 /// public DeviceDeployDirectionEnumType? DirectionType { get; set; } - - + + /// + /// 部署点位 + /// + public string DeployPlace { get; set; } + /// /// 最后心跳时间 ///