geology


获取部门树结构

<p><strong>简要描述:</strong> </p> <ul> <li>获取部门树结构</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://172.18.0.234:8080/department/selections</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>Header:</strong></p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">token</td> <td>.....</td> </tr> <tr> <td style="text-align: left;">Content-Type</td> <td>application/json</td> </tr> </tbody> </table> <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>{ "msg": null, "success": true, "result": [ { "id": 1, "parentId": 0, "name": "蟠龙水电公司", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": false, "children": [ { "id": 2, "parentId": 1, "name": "工程部", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": false, "children": [ { "id": 5, "parentId": 2, "name": "工程部一组", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": true, "children": null }, { "id": 6, "parentId": 2, "name": "工程部二组", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": true, "children": null } ] }, { "id": 3, "parentId": 1, "name": "机电部", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": false, "children": [ { "id": 7, "parentId": 3, "name": "机电部一组", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": true, "children": null }, { "id": 8, "parentId": 3, "name": "机电部二组", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": true, "children": null } ] }, { "id": 4, "parentId": 1, "name": "安全监管部", "uri": null, "icon": null, "phone": null, "seq": 0, "isLeaf": true, "children": null } ] } ] }</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;">parentId</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;">uri</td> <td style="text-align: left;">string</td> <td>冗余字段</td> </tr> <tr> <td style="text-align: left;">icon</td> <td style="text-align: left;">string</td> <td>冗余字段</td> </tr> <tr> <td style="text-align: left;">seq</td> <td style="text-align: left;">int</td> <td>冗余字段</td> </tr> <tr> <td style="text-align: left;">isLeaf</td> <td style="text-align: left;">boolean</td> <td>true:叶子节点;false:非叶子节点</td> </tr> <tr> <td style="text-align: left;">children</td> <td style="text-align: left;"></td> <td>子集</td> </tr> </tbody> </table>

页面列表

ITEM_HTML