模块关联列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>模块商品列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/adm/module/{id}/mappings</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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>模块ID</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 66,
"price": 555,
"stock": 5,
"event_start_at": "2018-07-04 00:00:00",
"event_end_at": "2018-08-19 00:00:00",
"code": "36f3d30253452409",
"created_at": "2018-07-05 17:57:31",
"name": "测试,学好英语新概念就够了",
"event_price": 0.01,
"is_distribute": 1,
"distribute_bonus": 100,
"status": "publish",
"poster": null,
"mapping_id": 1
}
],
"first_page_url": "http://localhost:82/api/adm/modules?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:82/api/adm/modules?page=1",
"next_page_url": null,
"path": "http://localhost:82/api/adm/modules",
"per_page": 20,
"prev_page_url": null,
"to": 1,
"total": 1
},
"message": "操作成功"
}</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>