获取用户角色
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取用户角色</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li>线上接口:<code>http://login.richx.cn/taskAssistant/getRoleListByApiKey.do</code></li>
<li>线下测试:<code>http://192.168.0.56:8080/WisdomCampus/taskAssistant/getRoleListByApiKey.do</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;">apiKey</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td></td>
</tr>
<tr>
<td style="text-align: left;">schoolId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>学校Id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"ResponseCode": 0,
"ResponseResult": "获取成功",
"ResponseObject": [
{
"roleCode": "parent",
"roleName": "家长"
},
{
"roleCode": "classLeader",
"roleName": "班主任"
}
]
}</code></pre>