Weteach-小程序


商品详情

<p><strong>简要描述:</strong> </p> <ul> <li>商品详情接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/super/commodity/{id}</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> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": "success", "data": { "id": 163, "price": 15.9, "stock": null, "event_price": 0, "event_start_at": null, "event_end_at": null, "is_distribute": 0, "distribute_bonus": 0, "code": "9aa5fcba8a500922", "created_at": "2018-12-03 10:23:56", "name": "爱丽丝漫游奇境记.New", "status": "publish", "poster": "", "pre_sale": 0, "open_redeem_code": 0, "share_title": null, "share_subtitle": null, "share_image": null, "is_groupon": 0, "brief": "", "type": "audio", "org_id": 1, "tags": [], "categories": [], "courses": [ { "id": 133, "name": "爱丽丝漫游奇境记", "cover": "http://cdn.weteach.com/cover/1541768897875.png", "brief": "&lt;p&gt;&lt;img src=\"http://cdn.weteach.com/content/1541768886456.jpg\"&gt;&lt;br&gt;&lt;/p&gt;", "status": "publish", "qr_path": null, "code": "9a4d13d359839132", "created_at": "2018-11-09 21:08:46", "total_lesson": 10, "quiz_type": "normal", "list_cover": "http://cdn.weteach.com/list_cover/1541768905401.png", "type": "audio", "erect_cover": "http://cdn.weteach.com/20180912171001.png", "org_id": 0, "mode": "offline", "course_time": 10, "pertime_duration": 60 } ], "groupon_detail": null, "pre_sale_detail": null }, "message": "操作成功", "ct": 1548051126 }</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>

页面列表

ITEM_HTML