获取策略列表
<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/selectTactics</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;">id</td>
<td style="text-align: left;">否</td>
<td>Long</td>
<td>设备id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"isSuccess": true,
"data": [
{
"id": 21,
"isEnable": 0,
"name": "天道酬勤2",
"cycle": 4,
"deviationValue": 55,
"sort": 7,
"remarks": "迪迦在世",
"createTime": "2022-06-17 04:06:41",
"createUserId": null,
"updateTime": "2022-06-22 07:48:22",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 20,
"isEnable": 1,
"name": "天道酬勤",
"cycle": 4,
"deviationValue": 55,
"sort": 7,
"remarks": "迪迦在世",
"createTime": "2022-06-17 04:05:02",
"createUserId": null,
"updateTime": "2022-06-17 04:05:02",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 12,
"isEnable": 0,
"name": "朱奥勤",
"cycle": 4,
"deviationValue": 55,
"sort": 7,
"remarks": "迪迦在世",
"createTime": "2022-06-17 02:42:59",
"createUserId": null,
"updateTime": "2022-06-17 02:42:59",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 11,
"isEnable": 1,
"name": "策略yyds",
"cycle": 112,
"deviationValue": 221,
"sort": 2,
"remarks": "俺是熊二",
"createTime": "2022-06-17 01:43:30",
"createUserId": null,
"updateTime": "2022-06-17 01:43:30",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 10,
"isEnable": 1,
"name": "策略yyds",
"cycle": 112,
"deviationValue": 221,
"sort": 2,
"remarks": "俺是熊大",
"createTime": "2022-06-16 17:41:22",
"createUserId": null,
"updateTime": "2022-06-16 17:41:22",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 9,
"isEnable": 1,
"name": "策略99",
"cycle": 112,
"deviationValue": 221,
"sort": 2,
"remarks": "迪迦在世",
"createTime": "2022-06-16 17:33:47",
"createUserId": null,
"updateTime": "2022-06-16 17:33:47",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 8,
"isEnable": 1,
"name": "策略99",
"cycle": 112,
"deviationValue": 221,
"sort": 2,
"remarks": "迪迦在世",
"createTime": "2022-06-16 17:14:30",
"createUserId": null,
"updateTime": "2022-06-16 17:14:30",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 7,
"isEnable": 1,
"name": "朱元璋9",
"cycle": 4,
"deviationValue": 55,
"sort": 7,
"remarks": "迪迦在世",
"createTime": "2022-06-16 01:40:23",
"createUserId": null,
"updateTime": "2022-06-16 01:40:23",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 6,
"isEnable": 1,
"name": "朱元璋",
"cycle": 4,
"deviationValue": 55,
"sort": 7,
"remarks": "迪迦在世",
"createTime": "2022-06-16 01:36:58",
"createUserId": null,
"updateTime": "2022-06-16 01:36:58",
"updateUserId": null,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 1,
"isEnable": 0,
"name": "检测策略007",
"cycle": 500,
"deviationValue": 30,
"sort": 1,
"remarks": "永远都是",
"createTime": "2022-06-13 09:26:44",
"createUserId": 1,
"updateTime": "2022-06-15 22:28:17",
"updateUserId": 2,
"isDeleted": 1,
"pageIndex": 0,
"pageSize": 0,
"items": null,
"deviceId": null
},
{
"id": 2,
"isEnable": 0,
"name": "检测策略1",
"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,
"deviceId": 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,
"deviceId": 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,
"deviceId": null
}
],
"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;">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;">isSuccess</td>
<td style="text-align: left;">Boolean</td>
<td>是否成功</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">object</td>
<td>数据</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">Integer</td>
<td>状态码</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">String</td>
<td>消息</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>