活动详情
<p><strong>简要描述:</strong> </p>
<ul>
<li>活动列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/adm/event/{id}</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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>活动ID</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"id": 1,
"name": "commodity1",
"type": "gift",
"start_at": "2018-07-31 11:57:06",
"end_at": "2018-08-31 11:57:06",
"param": "5",
"created_at": "2018-07-31 11:58:12",
"commodity": [
{
"id": 103,
"price": 200,
"stock": 79,
"event_start_at": "2018-07-24 00:00:00",
"event_end_at": "2018-07-31 00:00:00",
"code": "3f5e659aa0555c59",
"created_at": "2018-07-24 11:59:07",
"name": "连带3",
"event_price": 100,
"is_distribute": 1,
"distribute_bonus": 50,
"status": "publish",
"poster": "http://weteach-stage.ufile.ucloud.com.cn/goods/1532404743297.jpg",
"pre_sale": 0
},
{
"id": 109,
"price": 888800,
"stock": 1,
"event_start_at": "2018-07-26 00:00:00",
"event_end_at": "2018-07-31 00:00:00",
"code": "8040fb00c18ca84f",
"created_at": "2018-07-26 13:41:35",
"name": "全流程回归测试课程(100)-商品",
"event_price": 9,
"is_distribute": 1,
"distribute_bonus": 60,
"status": "publish",
"poster": "http://weteach-stage.ufile.ucloud.com.cn/goods/1532583690716.jpg",
"pre_sale": 0
},
{
"id": 110,
"price": 1,
"stock": null,
"event_start_at": null,
"event_end_at": null,
"code": "076736f03783d867",
"created_at": "2018-07-26 13:52:18",
"name": "123商品",
"event_price": 0,
"is_distribute": 0,
"distribute_bonus": 100,
"status": "publish",
"poster": "http://weteach-stage.ufile.ucloud.com.cn/goods/1532584334458.jpg",
"pre_sale": 0
}
]
},
"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>