获取选人树(教育局)接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取选人树(教育局)接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/bureauschool/bureauchoose.html</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<p>无</p>
<p><strong>返回示例</strong></p>
<pre><code> {
"errcode": 0,
"errmsg": "查询成功",
"data": [{
"id": "ding2323",
"name": "xxx团队",
"data_type": "dept",
"childlen":233 --本组织人数
},{
"id": "bureau_all",
"name": "区县教育局",
"data_type": "bureau",
"childlen": "1",
"childAry":[
{
"id": "ding2323323",
"name": "西湖区教育局",
"data_type": "bureau"
}
]
},{
"id": "school_all",
"name": "下属学校",
"data_type": "school",
"school_num": "23", -- 特殊处理 就这个节点有
"childlen": "2",
"childAry":[
{
"id": "小学",
"name": "小学",
"data_type": "period",
"childlen": "2",
"childAry":[
{
"id": "ding322323",
"name": "留下小学",
"data_type": "school",
"iszs": "1" -- 是否直属学校
}
]
}
]
}
]
}</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;">string</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;">data_type</td>
<td style="text-align: left;">string</td>
<td>数据类型:bureau 教育局,school 学校,dept 部门 emp 人员</td>
</tr>
<tr>
<td style="text-align: left;">childlen</td>
<td style="text-align: left;">int</td>
<td>子项数量</td>
</tr>
<tr>
<td style="text-align: left;">childAry</td>
<td style="text-align: left;">JSONArrary</td>
<td>子项数组</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>