物联网开发dev1


接口文档

<h1>零碳物联网</h1> <p>&gt; v1.0.0</p> <p>Base URLs:</p> <ul> <li>&lt;a href=&quot;<a href="http://81.69.57.61:8780/admin&quot;&gt;开发环境">http://81.69.57.61:8780/admin&quot;&gt;开发环境</a>: <a href="http://81.69.57.61:8780/admin&lt;/a&gt">http://81.69.57.61:8780/admin&lt;/a&gt</a>;</li> <li>&lt;a href=&quot;<a href="https://iot.swkj.net.cn&quot;&gt;正式环境">https://iot.swkj.net.cn&quot;&gt;正式环境</a>: <a href="https://iot.swkj.net.cn&lt;/a&gt">https://iot.swkj.net.cn&lt;/a&gt</a>;</li> </ul> <h1>第三方/第三方接口</h1> <p>&lt;a id=&quot;opIdlogin&quot;&gt;&lt;/a&gt;</p> <h2>POST 登录授权</h2> <p>POST /apiOther/login</p> <p>登录授权</p> <p>&gt; Body 请求参数</p> <pre><code class="language-json">{ &amp;quot;appId&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;appSecret&amp;quot;: &amp;quot;string&amp;quot; }</code></pre> <h3>请求参数</h3> <table> <thead> <tr> <th>名称</th> <th>位置</th> <th>类型</th> <th>必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>header</td> <td>string</td> <td>否</td> <td>none</td> </tr> <tr> <td>body</td> <td>body</td> <td><a href="#schemaapiloginbo">ApiLoginBo</a></td> <td>否</td> <td>none</td> </tr> </tbody> </table> <p>&gt; 返回示例</p> <p>&gt; 200 Response</p> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;data&amp;quot;: {} }</code></pre> <h3>返回结果</h3> <table> <thead> <tr> <th>状态码</th> <th>状态码含义</th> <th>说明</th> <th>数据模型</th> </tr> </thead> <tbody> <tr> <td>200</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td> <td>OK</td> <td><a href="#schemarobject">RObject</a></td> </tr> </tbody> </table> <p>&lt;a id=&quot;opIdpowerData&quot;&gt;&lt;/a&gt;</p> <h2>GET 获取电量数据</h2> <p>GET /apiOther/powerData</p> <p>获取电量数据</p> <h3>请求参数</h3> <table> <thead> <tr> <th>名称</th> <th>位置</th> <th>类型</th> <th>必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>gatewayPackage</td> <td>query</td> <td>string</td> <td>是</td> <td>网关号</td> </tr> <tr> <td>Authorization</td> <td>header</td> <td>string</td> <td>否</td> <td>none</td> </tr> </tbody> </table> <p>&gt; 返回示例</p> <p>&gt; 200 Response</p> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;gatewayPackage&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;outPower&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;sendPower&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;powerIncome&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;powerUse&amp;quot;: &amp;quot;string&amp;quot; } }</code></pre> <h3>返回结果</h3> <table> <thead> <tr> <th>状态码</th> <th>状态码含义</th> <th>说明</th> <th>数据模型</th> </tr> </thead> <tbody> <tr> <td>200</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td> <td>OK</td> <td><a href="#schemarapipowerdatavo">RApiPowerDataVo</a></td> </tr> </tbody> </table> <p>&lt;a id=&quot;opIdpowerBatchData&quot;&gt;&lt;/a&gt;</p> <h2>GET 批量获取电量数据</h2> <p>GET /apiOther/powerBatchData</p> <p>批量获取电量数据</p> <h3>请求参数</h3> <table> <thead> <tr> <th>名称</th> <th>位置</th> <th>类型</th> <th>必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>header</td> <td>string</td> <td>否</td> <td>none</td> </tr> </tbody> </table> <p>&gt; 返回示例</p> <p>&gt; 200 Response</p> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;data&amp;quot;: [ { &amp;quot;gatewayPackage&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;outPower&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;sendPower&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;powerIncome&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;powerUse&amp;quot;: &amp;quot;string&amp;quot; } ] }</code></pre> <h3>返回结果</h3> <table> <thead> <tr> <th>状态码</th> <th>状态码含义</th> <th>说明</th> <th>数据模型</th> </tr> </thead> <tbody> <tr> <td>200</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td> <td>OK</td> <td><a href="#schemarlistapipowerdatavo">RListApiPowerDataVo</a></td> </tr> </tbody> </table> <h1>数据模型</h1> <p>&lt;h2 id=&quot;tocS_ApiPowerDataVo&quot;&gt;ApiPowerDataVo&lt;/h2&gt;</p> <p>&lt;a id=&quot;schemaapipowerdatavo&quot;&gt;&lt;/a&gt; &lt;a id=&quot;schema_ApiPowerDataVo&quot;&gt;&lt;/a&gt; &lt;a id=&quot;tocSapipowerdatavo&quot;&gt;&lt;/a&gt; &lt;a id=&quot;tocsapipowerdatavo&quot;&gt;&lt;/a&gt;</p> <pre><code class="language-json">{ &amp;quot;gatewayPackage&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;outPower&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;sendPower&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;powerIncome&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;powerUse&amp;quot;: &amp;quot;string&amp;quot; } </code></pre> <p>电量数据对象</p> <h3>属性</h3> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>约束</th> <th>中文名</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>gatewayPackage</td> <td>string</td> <td>false</td> <td>none</td> <td>网关标识</td> </tr> <tr> <td>outPower</td> <td>string</td> <td>false</td> <td>none</td> <td>今日发电量</td> </tr> <tr> <td>sendPower</td> <td>string</td> <td>false</td> <td>none</td> <td>今日上网电量</td> </tr> <tr> <td>powerIncome</td> <td>string</td> <td>false</td> <td>none</td> <td>今日收益</td> </tr> <tr> <td>powerUse</td> <td>string</td> <td>false</td> <td>none</td> <td>今日用电量</td> </tr> </tbody> </table> <p>&lt;h2 id=&quot;tocS_ApiLoginBo&quot;&gt;ApiLoginBo&lt;/h2&gt;</p> <p>&lt;a id=&quot;schemaapiloginbo&quot;&gt;&lt;/a&gt; &lt;a id=&quot;schema_ApiLoginBo&quot;&gt;&lt;/a&gt; &lt;a id=&quot;tocSapiloginbo&quot;&gt;&lt;/a&gt; &lt;a id=&quot;tocsapiloginbo&quot;&gt;&lt;/a&gt;</p> <pre><code class="language-json">{ &amp;quot;appId&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;appSecret&amp;quot;: &amp;quot;string&amp;quot; } </code></pre> <p>用户登录对象</p> <h3>属性</h3> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>约束</th> <th>中文名</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>appId</td> <td>string</td> <td>true</td> <td>none</td> <td>appId</td> </tr> <tr> <td>appSecret</td> <td>string</td> <td>true</td> <td>none</td> <td>appSecret</td> </tr> </tbody> </table>

页面列表

ITEM_HTML