课表-课表详情
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>课表-课表详情</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://激活时候输入的服务地址/card/course/courseTable/{classCode}</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>请求参数 request body (form-data)</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;">classCode</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>班级编码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 200,
&quot;flag&quot;: true,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: [
{
&quot;courseNum&quot;: &quot;第一节课&quot;,
&quot;courseTime&quot;: &quot;08:30-09:20&quot;,
&quot;courseOne&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;1&quot;
},
&quot;courseTwo&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseThree&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseFour&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseFive&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseSix&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseSeven&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
}
},
{
&quot;courseNum&quot;: &quot;第二节课&quot;,
&quot;courseTime&quot;: &quot;9:30-10:10&quot;,
&quot;courseOne&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;1&quot;
},
&quot;courseTwo&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseThree&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseFour&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseFive&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseSix&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
},
&quot;courseSeven&quot;: {
&quot;imageName&quot;:&quot;image1.png&quot;,
&quot;teacherName&quot;:&quot;王丽&quot;,
&quot;courseName&quot;:&quot;语文&quot;,
&quot;courseTime&quot;:&quot;8:20-9:15&quot;,
&quot;className&quot;:&quot;一(3)班&quot;,
&quot;status&quot;:&quot;0&quot;
}
}
]
}</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;">code</td>
<td style="text-align: left;">int</td>
<td>code == 200时,说明接口http 请求成功,非200的情况说明http请求失败,此时flag必定=false</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">String</td>
<td>返回消息,如果flag = false,则msg 返回错误信息</td>
</tr>
<tr>
<td style="text-align: left;">flag</td>
<td style="text-align: left;">boolean</td>
<td>除了根据code =200之外,还必须根据此接口定义接口请求是否成功: true 解锁成功,false 解锁失败</td>
</tr>
<tr>
<td style="text-align: left;">courseNum</td>
<td style="text-align: left;">String</td>
<td>课节数如“1,2,3,4,5,6,7”</td>
</tr>
<tr>
<td style="text-align: left;">courseTime</td>
<td style="text-align: left;">String</td>
<td>课程时间段</td>
</tr>
<tr>
<td style="text-align: left;">courseOne</td>
<td style="text-align: left;">Object</td>
<td>星期一数据</td>
</tr>
<tr>
<td style="text-align: left;">courseTwo</td>
<td style="text-align: left;">Object</td>
<td>星期二数据</td>
</tr>
<tr>
<td style="text-align: left;">courseThree</td>
<td style="text-align: left;">Object</td>
<td>星期三数据</td>
</tr>
<tr>
<td style="text-align: left;">courseFour</td>
<td style="text-align: left;">Object</td>
<td>星期一数据</td>
</tr>
<tr>
<td style="text-align: left;">courseFive</td>
<td style="text-align: left;">Object</td>
<td>星期一数据</td>
</tr>
<tr>
<td style="text-align: left;">courseSix</td>
<td style="text-align: left;">Object</td>
<td>星期一数据</td>
</tr>
<tr>
<td style="text-align: left;">courseSeven</td>
<td style="text-align: left;">Object</td>
<td>星期一数据</td>
</tr>
<tr>
<td style="text-align: left;">imageName</td>
<td style="text-align: left;">String</td>
<td>图片名称</td>
</tr>
<tr>
<td style="text-align: left;">teacherName</td>
<td style="text-align: left;">String</td>
<td>教师名称</td>
</tr>
<tr>
<td style="text-align: left;">courseName</td>
<td style="text-align: left;">String</td>
<td>课程名称</td>
</tr>
<tr>
<td style="text-align: left;">className</td>
<td style="text-align: left;">String</td>
<td>教室就是“班级名称”</td>
</tr>
<tr>
<td style="text-align: left;">status</td>
<td style="text-align: left;">String</td>
<td>1正在上课 2 已下课</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>