获取科室列表
<p><strong>请求URI:</strong></p>
<ul>
<li><code>/hospital/department</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;">pid</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">int</td>
<td>父id 0=顶层</td>
</tr>
<tr>
<td style="text-align: left;">hot_switch</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">int</td>
<td>热门 0=否,1=是</td>
</tr>
</tbody>
</table>
<p><strong>返回示例:</strong></p>
<pre><code>{
    &quot;msg&quot;: &quot;请求成功&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 3660,//科室id
            &quot;title&quot;: &quot;呼吸科&quot;,//科室名称
            &quot;pid&quot;:0,
            &quot;hot_switch&quot;:1
        }
    ],
    &quot;code&quot;: 0
}</code></pre>