POST [Host Server]/api/v1/data/realtimeDatas
Path | [Host Server]/api/v1/data/realtimeDatas |
---|---|
Summary | 获取实时数据 |
Description | 获取变量实时数据 |
Consumes | application/json |
Parameters
Name | Description | Parameter Type | Data Type | Default | Required |
---|---|---|---|---|---|
token | 1.请求令牌 | json | string | yes | |
variantIds | 2.变量列表,结构为[boxId:variantId,…] | json | stringList | yes |
请求参数示例:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50Ijoic3VtbWVyIiwiZXhwIjoxNzU3NDg0OTcxLCJpc3MiOiJzY2lvdF9jbG91ZCIsIm5iZiI6MTc1Njg4MDA3MX0.XpzCwo_W0JGpjAg4rciG8pfOatjSuYuZsyaXUnX7Ye0",
"variantIds":["6ab728135e53485e9e42bf5595da5bba:0","6ab728135e53485e9e42bf5595da5bba:1"]
}
Responses JsonResult«DataVo» :
Properties | Type | Description |
---|---|---|
code | integer | 状态码 |
data | DataVo | 数据集,状态success为true时返回,否则为空 |
msg | string | 返回消息 |
success | boolean | 状态 |
DataVo:
Properties | Type | Description |
---|---|---|
id | string | 变量ID |
value | string | 变量值 |
status | boolean | 变量状态 |
time | string | 更新时间 |
作者:霜蝉科技 创建时间:2025-08-07 10:57
最后编辑:霜蝉科技 更新时间:2025-09-08 13:41
最后编辑:霜蝉科技 更新时间:2025-09-08 13:41