2.1事业部好友资源汇总
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>事业部好友资源汇总接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://lietou.xx.local/api/mscrm/friend_resource_department_cencus</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<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;">userid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户userid</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 20000,
&quot;data&quot;: [
{
&quot;depart_id&quot;: 13,
&quot;depart_name&quot;: &quot;事业十四部(北京一区)&quot;,
&quot;recommend_num&quot;: 3,
&quot;interviewnew_num&quot;: 0,
&quot;offer_num&quot;: 0
},
{
&quot;depart_id&quot;: 16,
&quot;depart_name&quot;: &quot;事业十六部(上海一区)&quot;,
&quot;recommend_num&quot;: 0,
&quot;interviewnew_num&quot;: 0,
&quot;offer_num&quot;: 0
},
{
&quot;depart_id&quot;: 137,
&quot;depart_name&quot;: &quot;事业八部(猎头部)&quot;,
&quot;recommend_num&quot;: 0,
&quot;interviewnew_num&quot;: 0,
&quot;offer_num&quot;: 0
}
]
}</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;">depart_name</td>
<td style="text-align: left;">int</td>
<td>名称</td>
</tr>
<tr>
<td style="text-align: left;">depart_id</td>
<td style="text-align: left;">int</td>
<td>部门id</td>
</tr>
<tr>
<td style="text-align: left;">resume_num</td>
<td style="text-align: left;">int</td>
<td>C端好友总数</td>
</tr>
<tr>
<td style="text-align: left;">customer_num</td>
<td style="text-align: left;">int</td>
<td>B端好友总数</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>