接口说明
查询规则设备关联关系
请求示例
https://v7.cmsv8.com/StandardApiAction_loadDevRuleByRuleId.action?jsession=66d754dd7f41473dbd2&ruleId=671¤tPage=1&pageRecords=10
请求参数
| 参数名称 |
参数类型 |
是否必须 |
示例 |
描述 |
| jsession |
string |
是 |
66d754dd7f41473dbd2 |
会话号 |
| ruleId |
number |
是 |
671 |
规则id |
| currentPage |
number |
否 |
1 |
当前查询页码 如果为空,则不分页 |
| pageRecords |
number |
否 |
10 |
每页条数 如果为空,则不分页 |
返回参数
| 参数名称 | 参数类型 | 参数含义 |
|---|
| result | number | 接口状态码,0为正常 其他为异常(详情参见:[错误码说明](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1 "错误码说明")) |
| pagination | object | |
| currentPage | number | 当前查询页码 |
| totalPages | number | 查询数据总页数 |
| pageRecords | number | 每页条数 |
| totalRecords | number | 查询数据总条数 |
| startRecord | number | |
| endRecord | number | |
| nextPage | number | |
| previousPage | number | |
| hasNextPage | boolean | |
| hasPreviousPage | boolean | |
| primaryKey | string | |
| sortParams | string | |
| pagin | string | |
| rp | string | |
| query | string | |
| qtype | string | |
| directQuery | boolean | |
| page | boolean | |
| infos | array | |
| id | number | 规则设备关联关系id(建议先执行-查询规则设备关联关系-得到相应id), 多个使用逗号分割 |
| devIdno | string | 设备号 |
| ruleId | number | 规则id |
返回示例
{
"result": 0,
"pagination": {
"currentPage": 1,
"totalPages": 1,
"pageRecords": 10,
"totalRecords": 4,
"startRecord": 0,
"endRecord": 0,
"nextPage": 1,
"previousPage": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"primaryKey": "id",
"sortParams": null,
"pagin": null,
"rp": null,
"query": null,
"qtype": null,
"page": false,
"directQuery": false
},
"infos": [
{
"id": 21512,
"devIdno": "013300000001",
"ruleId": 671
}
]
}