查询部门树形菜单(通信录使用)
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/job/deptInfo/queryDeptTreetxl</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>成功返回示例</h5>
<pre><code>{
"msg": "",
"obj": [
{
"name": "中国铁路专运中心",
"pId": null,
"id": "6065993605322725314"
},
{
"name": "中心领导",
"pId": "6065993605322725314",
"id": "BC9BC6BB4A7545E7B5A8AC86EE92D835"
},
{
"name": "总务科",
"pId": "5FD0BE549419460A9C8177CDC5781428",
"id": "5007D0A487524980A34302401C8BDB28"
},
{
"name": "段领导",
"pId": "2DC33860D34843FE83E691EF5356A2E0",
"id": "DC549946780F4982A7604ACCF3620502"
},
{
"name": "办公室(党委办公室)",
"pId": "6065993605322725314",
"id": "89A7AAD6DE814E30AFAF72A42A07EF70"
},
{
"name": "地面服务科",
"pId": "5FD0BE549419460A9C8177CDC5781428",
"id": "4CE64898E170471AB32C308AD171F838"
},
{
"name": "汽车队",
"pId": "5FD0BE549419460A9C8177CDC5781428",
"id": "06308E4F898B422BA7996D085866854A"
},
{
"name": "计划财务处",
"pId": "6065993605322725314",
"id": "012E373F00074002A6AD17E98188FA38"
},
{
"name": "客运段",
"pId": "6065993605322725314",
"id": "DF3E105E8F864716814828950B91F72B"
}
],
"status": "200",
"success": true
}
</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;">msg</td>
<td style="text-align: left;">string</td>
<td>描述</td>
</tr>
<tr>
<td style="text-align: left;">obj</td>
<td style="text-align: left;">array</td>
<td>返回的数据</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;">pId</td>
<td style="text-align: left;">object</td>
<td>父级部门id</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">string</td>
<td>部门id</td>
</tr>
<tr>
<td style="text-align: left;">status</td>
<td style="text-align: left;">string</td>
<td>返回状态码</td>
</tr>
<tr>
<td style="text-align: left;">success</td>
<td style="text-align: left;">string</td>
<td>返回状态:false为失败,true为成功</td>
</tr>
</tbody>
</table>