命令下发记录查询(分页)✅
GET
/api/v1/command/datas/set/logs命令下发记录查询(分页)
请求参数
Query 参数
device_id
string
设备ID
identify
string
数据标识符
page
integer
页码
page_size
integer
每页数量
status
string
可选
1-发送成功 2- 发送失败3返回成功 4-返回失败
operation_type
string
可选
操作类型 1-手动操作 2-自动触发
identify_name
string
命令名称 模糊匹配
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
count
integer
必需
value
array [object {11}]
必需
示例
{
"code": 200,
"message": "Get data successfully",
"data": {
"count": 11,
"list": [
{
"id": "46495a51-5946-bdcc-9618-38f2b6c427c2",
"device_id": "66c172a3-f75c-b966-a547-0254f45d8d0d",
"operation_type": "1",
"message_id": "2806102",
"data": "{\"method\":\"DEVICE_CONTROL\",\"params\":{\"switchSprinkling\":1}}",
"rsp_data": null,
"status": "1",
"error_message": "",
"created_at": "2024-04-11T03:28:22.942458Z",
"user_id": "e7cc3359-54f3-e23b-801b-e3b82446378e",
"description": "下发命令日志记录",
"identify": "DEVICE_CONTROL"
},
{
"id": "9032a3e2-6851-c78f-64db-9958c0b21f77",
"device_id": "66c172a3-f75c-b966-a547-0254f45d8d0d",
"operation_type": "1",
"message_id": "2805897",
"data": "{\"method\":\"DEVICE_CONTROL\",\"params\":{\"switchSprinkling\":1}}",
"rsp_data": null,
"status": "1",
"error_message": "",
"created_at": "2024-04-11T03:24:57.83269Z",
"user_id": "e7cc3359-54f3-e23b-801b-e3b82446378e",
"description": "下发命令日志记录",
"identify": "DEVICE_CONTROL"
},
{
"id": "6f047ea7-defa-7cb1-d687-375eff9f72d8",
"device_id": "66c172a3-f75c-b966-a547-0254f45d8d0d",
"operation_type": "1",
"message_id": "2805740",
"data": "{\"method\":\"DEVICE_CONTROL\",\"params\":{\"switchSprinkling\":1}}",
"rsp_data": null,
"status": "1",
"error_message": "",
"created_at": "2024-04-11T03:22:20.703616Z",
"user_id": "e7cc3359-54f3-e23b-801b-e3b82446378e",
"description": "下发命令日志记录",
"identify": "DEVICE_CONTROL"
}
]
}
}
最后修改时间: 5 个月前