Weteach-小程序


兑换码列表

<p><strong>简要描述:</strong> </p> <ul> <li>兑换码列表</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/adm/commodity/{id}/redeemcode</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> <tr> <td style="text-align: left;">status</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>available/used</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "result": "success", "data": { "current_page": 1, "data": [ { "id": 1455, "serial_number": "417060123A2225LW", "secret_key": "2XNN2TPF28R755CF", "ticket": "第1批名著阅读", "status": "used", "begin_date": "2017-06-01", "end_date": "2018-09-09", "user_id": 66, "consumed_at": "2018-07-05 11:44:07", "created_at": "2018-07-05 11:26:19", "commodity_id": 51, "commodity_name": "3434" }, { "id": 1456, "serial_number": "417060123A2225LX", "secret_key": "2XHN2T7T28Q6567Z", "ticket": "第1批名著阅读", "status": "available", "begin_date": "2017-06-01", "end_date": "2018-09-09", "user_id": 66, "consumed_at": "2018-07-05 11:48:33", "created_at": "2018-07-05 11:26:19", "commodity_id": 51, "commodity_name": "3434" }, { "id": 1457, "serial_number": "417060123A2225LY", "secret_key": "2X3R2T5L28V657MZ", "ticket": "第1批名著阅读", "status": "used", "begin_date": "2017-06-01", "end_date": "2018-09-09", "user_id": 66, "consumed_at": "2018-07-05 12:08:19", "created_at": "2018-07-05 11:26:19", "commodity_id": 51, "commodity_name": "3434" }, { "id": 1802, "serial_number": "418041923A22234M", "secret_key": "24C22T4D2BS69QQ8", "ticket": "新1", "status": "available", "begin_date": "2018-04-19", "end_date": "2020-12-31", "user_id": null, "consumed_at": null, "created_at": "2018-07-10 09:59:43", "commodity_id": 51, "commodity_name": "3434" } ], "first_page_url": "http://localhost:82/api/adm/commodity/51/redeemcode?page=1", "from": 1, "last_page": 1, "last_page_url": "http://localhost:82/api/adm/commodity/51/redeemcode?page=1", "next_page_url": null, "path": "http://localhost:82/api/adm/commodity/51/redeemcode", "per_page": 20, "prev_page_url": null, "to": 4, "total": 4 }, "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>

页面列表

ITEM_HTML