课程兑换码查找
<p><strong>简要描述:</strong> </p>
<ul>
<li>课程兑换码查找</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/adm/courses/redeemcode</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;">key</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>{
"result": "success",
"data": {
"id": 1063,
"serial_number": "UFLCUGXL133A86SD",
"secret_key": "5KCUCN1333P1SK1F",
"course_id": 133,
"status": "used",
"user_id": 15,
"consumed_at": "2018-12-01 11:39:08",
"created_at": "2018-12-01 11:28:48",
"user_name": "fafrei",
"user_mobile": null,
"course_name": "爱丽丝漫游奇境记"
},
"message": "操作成功",
"ct": 1543635556
}</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;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>