策略列表分页条件查询
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取策略列表接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://47.111.70.10:8091/collector-siot-smb/api/tactics/selectTacticsEOPage</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>是否必须</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">pageIndex</td>
<td style="text-align: left;">int</td>
<td>是</td>
<td>页编号 : 第几页</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">int</td>
<td>是</td>
<td>页大小 : 每页的数量</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">String</td>
<td>否</td>
<td>策略名称</td>
</tr>
<tr>
<td style="text-align: left;">isEnable</td>
<td style="text-align: left;">int</td>
<td>否</td>
<td>是否启用(0:禁用,1:启用)</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"isSuccess": true,
"data": {
"pageNum": 0,
"pageSize": 0,
"size": 5,
"orderBy": null,
"startRow": 1,
"endRow": 5,
"total": 0,
"pages": 0,
"list": [
{
"id": 5,
"isEnable": 1,
"name": "品牌",
"cycle": 22,
"deviationValue": 22,
"sort": 5,
"remarks": "没没没",
"createTime": "2022-06-14 20:28:06",
"createUserId": null,
"updateTime": "2022-06-14 20:28:06",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null
},
{
"id": 1,
"isEnable": 0,
"name": "检测设备一",
"cycle": 500,
"deviationValue": 30,
"sort": 1,
"remarks": "测试组A01,测试用",
"createTime": "2022-06-13 09:26:44",
"createUserId": 1,
"updateTime": "2022-06-13 09:26:50",
"updateUserId": 2,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null
},
{
"id": 2,
"isEnable": 0,
"name": "检测设备2",
"cycle": 1000,
"deviationValue": 30,
"sort": 2,
"remarks": "测试组A02,测试用",
"createTime": "2022-05-13 10:26:44",
"createUserId": 1,
"updateTime": "2022-06-13 09:26:50",
"updateUserId": 2,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null
},
{
"id": 3,
"isEnable": 0,
"name": "检测设备3",
"cycle": 200,
"deviationValue": 30,
"sort": 3,
"remarks": "测试组A03,测试用",
"createTime": "2022-06-13 09:26:44",
"createUserId": 1,
"updateTime": "2022-06-13 09:26:50",
"updateUserId": 2,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null
},
{
"id": 4,
"isEnable": 0,
"name": "检测设备4",
"cycle": 500,
"deviationValue": 30,
"sort": 4,
"remarks": "测试组A04,测试用",
"createTime": "2022-06-13 09:26:44",
"createUserId": 1,
"updateTime": "2022-06-13 09:26:50",
"updateUserId": 2,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null
}
],
"prePage": 0,
"nextPage": 0,
"isFirstPage": false,
"isLastPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 8,
"navigatepageNums": [],
"navigateFirstPage": 0,
"navigateLastPage": 0,
"firstPage": 0,
"lastPage": 0
},
"code": 200,
"msg": "成功"
}</code></pre>
<h5>返回data参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">pageNum</td>
<td style="text-align: left;">int</td>
<td>页编号 : 第几页</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">int</td>
<td>页大小 : 每页的数量</td>
</tr>
<tr>
<td style="text-align: left;">size</td>
<td style="text-align: left;">int</td>
<td>当前页面多少条数据</td>
</tr>
<tr>
<td style="text-align: left;">total</td>
<td style="text-align: left;">int</td>
<td>总行数</td>
</tr>
<tr>
<td style="text-align: left;">pages</td>
<td style="text-align: left;">int</td>
<td>总页数</td>
</tr>
<tr>
<td style="text-align: left;">list</td>
<td style="text-align: left;">List</td>
<td>返回行数据</td>
</tr>
</tbody>
</table>
<h5>返回list参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">Long</td>
<td>策略id</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">String</td>
<td>策略名称</td>
</tr>
<tr>
<td style="text-align: left;">updateTime</td>
<td style="text-align: left;">date</td>
<td>上次修改时间</td>
</tr>
<tr>
<td style="text-align: left;">isEnable</td>
<td style="text-align: left;">int</td>
<td>启用状态(0:禁用,1:启用)</td>
</tr>
<tr>
<td style="text-align: left;">cycle</td>
<td style="text-align: left;">Long</td>
<td>采样周期(ms为单位) 注:需拼接ms</td>
</tr>
<tr>
<td style="text-align: left;">deviationValue</td>
<td style="text-align: left;">BigDecimal</td>
<td>允许波动(%为单位) 注:需拼接%</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>