获取年级或者阶段列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取年级或者阶段列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/Common/GradeList</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;">level</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>类型 1、所有年级 2、教学阶段</td>
</tr>
<tr>
<td style="text-align: left;">customer_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>用户编号</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>1、机构 2、学校</td>
</tr>
</tbody>
</table>
<p><strong>参数说明:</strong> </p>
<pre><code>传入customer_id数据默认显示所在年级</code></pre>
<p><strong>年级返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 200,
&quot;msg&quot;:&quot;获取成功&quot;,
&quot;description&quot;: &quot;&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: &quot;11&quot;,
&quot;name&quot;: &quot;幼小阶段&quot;,
&quot;grade&quot;: [
{
&quot;id&quot;: &quot;1104&quot;,
&quot;name&quot;: &quot;早教&quot;,
&quot;selected&quot;: false
},
{
&quot;id&quot;: &quot;1105&quot;,
&quot;name&quot;: &quot;小班&quot;,
&quot;selected&quot;: false
},
{
&quot;id&quot;: &quot;1106&quot;,
&quot;name&quot;: &quot;中班&quot;,
&quot;selected&quot;: false
},
{
&quot;id&quot;: &quot;1107&quot;,
&quot;name&quot;: &quot;大班&quot;,
&quot;selected&quot;: false
}
]
}
]
}</code></pre>
<p><strong>阶段返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 200,
&quot;msg&quot;:&quot;获取成功&quot;,
&quot;description&quot;: &quot;&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: &quot;11&quot;,
&quot;name&quot;: &quot;学龄前&quot;
},
{
&quot;id&quot;: &quot;12&quot;,
&quot;name&quot;: &quot;小学阶段&quot;
},
{
&quot;id&quot;: &quot;13&quot;,
&quot;name&quot;: &quot;初中阶段&quot;
},
{
&quot;id&quot;: &quot;14&quot;,
&quot;name&quot;: &quot;高中阶段&quot;
},
{
&quot;id&quot;: &quot;16&quot;,
&quot;name&quot;: &quot;大学阶段&quot;
},
{
&quot;id&quot;: &quot;17&quot;,
&quot;name&quot;: &quot;成人阶段1&quot;
},
{
&quot;id&quot;: &quot;18&quot;,
&quot;name&quot;: &quot;成人阶段2&quot;
}
]
}</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;">code</td>
<td style="text-align: left;">int</td>
<td>200成功 其它失败</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>