市电路灯系统


5.回路开闸/合闸

<h4>请求地址</h4> <ul> <li>正式环境: <a href="https://www.lampmind.com/api/newLampPole/loopStatus">https://www.lampmind.com/api/newLampPole/loopStatus</a></li> <li>测试环境: <a href="https://sd.solar-iot.com/api/newLampPole/loopStatus">https://sd.solar-iot.com/api/newLampPole/loopStatus</a></li> </ul> <h4>请求方法</h4> <p><strong>POST</strong></p> <h4>请求参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>说明</th> <th>是否必须</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>string</td> <td>用户名</td> <td>Y</td> </tr> <tr> <td>client_key</td> <td>string</td> <td>设备唯一码(imei)</td> <td>Y</td> </tr> <tr> <td>token</td> <td>string</td> <td>鉴权口令</td> <td>Y</td> </tr> <tr> <td>os</td> <td>string</td> <td>使用平台(0:PC, 1:iOS, 2:Android)</td> <td>Y</td> </tr> <tr> <td>loopId</td> <td>int</td> <td>回路id(多个用逗号隔开)</td> <td>Y</td> </tr> <tr> <td>type</td> <td>int</td> <td>操作类型(1 手动,2 策略)</td> <td>Y</td> </tr> <tr> <td>lockStatus</td> <td>int</td> <td>锁状态(0 解锁,1 锁死)(手动)</td> <td>N</td> </tr> <tr> <td>status</td> <td>int</td> <td>闸状态(0 合闸,1 分闸)(手动)</td> <td>N</td> </tr> </tbody> </table> <h4>返回参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>说明</th> <th>必须存在</th> </tr> </thead> <tbody> <tr> <td>status</td> <td>string</td> <td>返回码</td> <td>Y</td> </tr> <tr> <td>msg</td> <td>string</td> <td>返回信息</td> <td>Y</td> </tr> <tr> <td>data</td> <td>object</td> <td>结果数据</td> <td>Y</td> </tr> <tr> <td>resList</td> <td>array</td> <td>操作结果数据</td> <td>Y</td> </tr> <tr> <td>code</td> <td>string</td> <td>状态码</td> <td>Y</td> </tr> <tr> <td>msg</td> <td>string</td> <td>返回信息</td> <td>Y</td> </tr> <tr> <td>name</td> <td>string</td> <td>回路名称</td> <td>Y</td> </tr> </tbody> </table> <h4>返回内容实例</h4> <pre><code>{ "status":"0000", "msg":"操作成功", "data":{ "resList":[ {"name":"test","code":"0000","msg":"操作成功"}, {"name":"test","code":"0000","msg":"操作成功"}, ] } }</code></pre>

页面列表

ITEM_HTML