update api.md

main
chunquansang 2 months ago
parent be4a46797e
commit 785fefa749

@ -300,13 +300,12 @@
## 1. 接口基本信息
- **接口名称**:获取实时监控画面
- **请求方法**`GET`
- **接口路径**`/api/realTime/monitor`
- **接口路径**`/api/v1/record/get_latest_second_records/`
- **功能描述**:获取实时监控画面数据,展示设备状态及问题(如搭扣未搭、撑杆断裂等)。
## 2. 请求参数
| 参数名 | 类型 | 是否必填 | 描述 | 示例值 |
|--------------|--------|----------|--------------------------|--------------|
| deviceType | string | 否 | 设备类型(如车体、撑杆) | vehicle |
## 3. 响应参数
| 参数名 | 类型 | 描述 |
@ -321,17 +320,18 @@
```json
{
"code": 200,
"message": "获取实时监控画面成功",
"success": true,
"data": [
{
"imageUrl": "https://example.com/train_vehicle_monitor.jpg",
"problemDesc": "搭扣未搭"
"url": "http://192.168.10.14:8123/ftp/1.jpg",
"fault_type": "撑杆弯曲"
},
{
"imageUrl": "https://example.com/pole_monitor.jpg",
"problemDesc": "撑杆断裂"
"url": "http://192.168.10.14:8123/ftp/1.jpg",
"fault_type": "门折页座脱落"
}
]
],
"errorMessage": ""
}
```
![alt text](1741680112113.png)

Loading…
Cancel
Save