tutorChoose

导师选择分配


随机生成导师信息接口

<p><strong>简要描述:</strong> </p> <ul> <li>随机生成导师信息接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/API/index.php/Home/Choose/teacherAdd.html</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;">number</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>导师人数,默认30</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: [ { &amp;quot;tid&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;max_number&amp;quot;: &amp;quot;8&amp;quot;, &amp;quot;now_number&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;full&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;power&amp;quot;: &amp;quot;0&amp;quot; } ], &amp;quot;msg&amp;quot;: &amp;quot;教师信息录入成功&amp;quot; } or { &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: null, &amp;quot;msg&amp;quot;: &amp;quot;教师信息录入失败&amp;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;">tid</td> <td style="text-align: left;">int</td> <td>导师编号</td> </tr> <tr> <td style="text-align: left;">max_number</td> <td style="text-align: left;">int</td> <td>导师所需最大学生数</td> </tr> <tr> <td style="text-align: left;">now_number</td> <td style="text-align: left;">int</td> <td>目前导师的学生数</td> </tr> <tr> <td style="text-align: left;">full</td> <td style="text-align: left;">int</td> <td>学生数是否已满(0、未满,1、已满)</td> </tr> <tr> <td style="text-align: left;">power</td> <td style="text-align: left;">int</td> <td>导师权限(0、普通导师,1、系负责人)</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>接口可提供给其他平台使用,目前仅限本地使用,返回示例因JSON数据较多,只取一项说明</li> </ul>

页面列表

ITEM_HTML