部门树
<p>[TOC]</p>
<p><strong>简要描述:</strong></p>
<h1>部门列表</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>system/lxWgbj/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET</li>
</ul>
<p><strong>参数:</strong> </p>
<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;">pageNumber</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>页码</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>每页条数</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>搜索名称</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": "0000",
"result": {
"pageData": {
"records": [
{
"name": "第五网格(基础)",
"allName": "第五网格(基础),锦屏第一社区,龙洞街道",
"code": "370102012206005"
}
],
"total": 211,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"searchCount": true,
"pages": 22
}
}
}</code></pre>
<p><strong>简要描述:</strong></p>
<h1>部门树</h1>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://localhost:8085/system/department/getTree</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET</li>
</ul>
<p><strong>参数:</strong> </p>
<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>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code":"0000",
"result":{
"departmentTree":[
{
"id":1,
"name":"平台",
"code":"1",
"parentId":0,
"type":1,
"expand":1,
"children":[
{
"id":100000,
"name":"历下区政府",
"parentId":1,
"type":10,
"children":Array[14],
"title":"历下区政府"
}
],
"title":"平台"
}
]
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<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;">int</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;">children</td>
<td style="text-align: left;">List</td>
<td>子级</td>
</tr>
</tbody>
</table>
<h1>街道社区网格树</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/system/lxWgbj/getTree</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>GET</p>
<p><strong>返回示例</strong></p>
</li>
</ul>
<pre><code>{
"code":"0000",
"result":{
"tree":[
{
"id":4,
"name":"智远街道",
"code":"370102013",
"parentId":1,
"children":[
{
"id":91,
"name":"刘智远社区",
"code":"370102013207",
"parentId":4,
"children":[
{
"id":1384,
"name":"第一网格(基础)",
"code":"370102013207001",
"parentId":91,
"children":[
]
}
]
}
]
}
]
}
}</code></pre>