查询区域、设备分组,生成树结构
<p>[TOC]</p>
<h5>光伏WebAPI</h5>
<ul>
<li>查询区域、设备分组,生成树结构</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://192.168.8.98:6001/api/Photovoltaic/GetTreeNode</code>
<h5>请求方式</h5></li>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">signature</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>校验</td>
</tr>
<tr>
<td style="text-align: left;">timestamp</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>时间戳</td>
</tr>
<tr>
<td style="text-align: left;">nonce</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>随机数</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;success&quot;: true,
&quot;errorMsg&quot;: &quot;&quot;,
&quot;code&quot;: &quot;200&quot;,
&quot;count&quot;: 0,
&quot;data&quot;: [
{
&quot;id&quot;: 0,
&quot;name&quot;: &quot;监控中心&quot;,
&quot;pid&quot;: 0,
&quot;type&quot;: 0,
&quot;uid&quot;: &quot;&quot;,
&quot;puid&quot;: null,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 0,
&quot;npid&quot;: 0,
&quot;lc&quot;: null
},
{
&quot;id&quot;: 1,
&quot;name&quot;: &quot;区域&quot;,
&quot;pid&quot;: 0,
&quot;type&quot;: 1,
&quot;uid&quot;: &quot;&quot;,
&quot;puid&quot;: &quot;&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 102,
&quot;npid&quot;: 0,
&quot;lc&quot;: &quot;L1&quot;
},
{
&quot;id&quot;: 2,
&quot;name&quot;: &quot;逆变器1&quot;,
&quot;pid&quot;: 1,
&quot;type&quot;: 2,
&quot;uid&quot;: &quot;A001&quot;,
&quot;puid&quot;: &quot;&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 103,
&quot;npid&quot;: 102,
&quot;lc&quot;: &quot;L2&quot;
},
{
&quot;id&quot;: 3,
&quot;name&quot;: &quot;区域&quot;,
&quot;pid&quot;: 0,
&quot;type&quot;: 1,
&quot;uid&quot;: &quot;&quot;,
&quot;puid&quot;: &quot;A001&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 104,
&quot;npid&quot;: 0,
&quot;lc&quot;: &quot;L1&quot;
},
{
&quot;id&quot;: 4,
&quot;name&quot;: &quot;逆变器&quot;,
&quot;pid&quot;: 3,
&quot;type&quot;: 2,
&quot;uid&quot;: &quot;C001&quot;,
&quot;puid&quot;: &quot;&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 107,
&quot;npid&quot;: 104,
&quot;lc&quot;: &quot;L2&quot;
},
{
&quot;id&quot;: 5,
&quot;name&quot;: &quot;电池1&quot;,
&quot;pid&quot;: 4,
&quot;type&quot;: 3,
&quot;uid&quot;: &quot;CC100002&quot;,
&quot;puid&quot;: &quot;C001&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 109,
&quot;npid&quot;: 107,
&quot;lc&quot;: &quot;L2&quot;
},
{
&quot;id&quot;: 6,
&quot;name&quot;: &quot;电池2&quot;,
&quot;pid&quot;: 4,
&quot;type&quot;: 3,
&quot;uid&quot;: &quot;CC2&quot;,
&quot;puid&quot;: &quot;CC100002&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 110,
&quot;npid&quot;: 107,
&quot;lc&quot;: &quot;L2&quot;
},
{
&quot;id&quot;: 7,
&quot;name&quot;: &quot;电池3&quot;,
&quot;pid&quot;: 4,
&quot;type&quot;: 3,
&quot;uid&quot;: &quot;CC02&quot;,
&quot;puid&quot;: &quot;CC2&quot;,
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;z&quot;: 0,
&quot;nid&quot;: 111,
&quot;npid&quot;: 107,
&quot;lc&quot;: &quot;L2&quot;
},
{
&quot;id&quot;: 8,
&quot;name&quot;: &quot;区域&quot;,
&quot;pid&quot;: 0,
&quot;type&quot;: 1,
&quot;uid&quot;: &quot;&quot;,
&quot;puid&quot;: &quot;CC02&quot;,
&quot;x&quot;: 3,
&quot;y&quot;: 3,
&quot;z&quot;: 3,
&quot;nid&quot;: 112,
&quot;npid&quot;: 0,
&quot;lc&quot;: &quot;L1&quot;
}
]
}</code></pre>
<h5>返回参数说明</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;">success</td>
<td style="text-align: left;">bool</td>
<td>是否成功:成功为true,否则为false</td>
</tr>
<tr>
<td style="text-align: left;">errorMsg</td>
<td style="text-align: left;">string</td>
<td>失败时存储失败信息</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>服务器状态码:200-成功;400-请求报文语法错误或参数错误;401-认证错误;500-服务器故障或Web应用故障</td>
</tr>
<tr>
<td style="text-align: left;">count</td>
<td style="text-align: left;">string</td>
<td>数据行数</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">object</td>
<td>返回数据结果</td>
</tr>
</tbody>
</table>