优惠列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>优惠列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cli/commodity/{id}/joint</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;">string</td>
<td>商品ID</td>
</tr>
<tr>
<td style="text-align: left;">remark</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>groupon</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"id": 83,
"price": 9999,
"stock": 2,
"event_start_at": "2018-07-10 00:00:00",
"event_end_at": "2018-07-31 00:00:00",
"code": "fcd91c98c3715e59",
"created_at": "2018-07-13 09:19:55",
"name": "重构回归测试--商品",
"event_price": 0.01,
"is_distribute": 1,
"distribute_bonus": 100,
"status": "publish",
"poster": null,
"joint": [
{
"id": 81,
"price": 0.01,
"stock": 82,
"event_start_at": "2018-08-06 00:00:00",
"event_end_at": "2018-08-07 00:00:00",
"code": "f62f783aa4e71635",
"created_at": "2018-07-09 19:43:49",
"name": "qwe",
"event_price": 0.01,
"is_distribute": 1,
"distribute_bonus": 100,
"status": "publish",
"poster": null,
"cj_id": 2, //联销ID
"cj_price": 40 //联销价格
},
{
"id": 82,
"price": 123,
"stock": 345,
"event_start_at": "2018-07-12 00:00:00",
"event_end_at": "2018-08-28 00:00:00",
"code": "5e1bd4304df06300",
"created_at": "2018-07-12 17:55:01",
"name": "测试音频/视频",
"event_price": 111,
"is_distribute": 1,
"distribute_bonus": 12,
"status": "publish",
"poster": null,
"cj_id": 1,
"cj_price": 50
}
],
"coupon": {
"id": 15,
"user_id": 66,
"coupon_id": 2,
"expire_at": "2018-07-18 15:48:47",
"price": 99,
"status": "ready",
"bill_id": null,
"order_id": null,
"commodity_id": 83,
"used_at": null,
"created_at": "2018-07-13 15:48:47"
}
},
"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>