设置用户是否为推广员
<p><strong>简要描述:</strong> </p>
<ul>
<li>设置用户是否为推广员</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/user/spread/set-role</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </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;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户登录token</td>
</tr>
<tr>
<td style="text-align: left;">rebate</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">float</td>
<td>返点值(百分比)</td>
</tr>
<tr>
<td style="text-align: left;">custNo</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>推广的用户咕啦编号</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 600,
&quot;msg&quot;: &quot;设置成功&quot;,
&quot;result&quot;: []
}</code></pre>
<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;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户登录token</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 600,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;result&quot;: {
&quot;rebate&quot;: &quot;1.00&quot;,//当前用户的返点
&quot;spread_type&quot;:&quot;1&quot;,//推广员级别0不是推广员1一级2二级....
}
}</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>