命令下发记录分页查询
本地
http://127.0.0.1:9999
本地
http://127.0.0.1:9999
GET
http://127.0.0.1:9999
命令下发
请求参数
Query 参数
device_id
string
设备ID
identify
string
数据标识符
page
integer
页码
page_size
integer
每页数量
status
string
可选
operation_type
string
可选
identify_name
string
命令名称 模糊匹配
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9999/api/v1/command/datas/set/logs?device_id=&identify=&page=&page_size=&status=&operation_type=&identify_name' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
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"}]}}