接口文档

接口文档


商品列表

<h5>简要描述</h5> <ul> <li>商品列表接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xx.com/api/shop/product/list</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>参数</h5> <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> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "data": { "data": [ { "id": 40, "cate_id": 0, "cate_name": null, "title": "藏在木头里的智慧", "subtitle": "藏在木头里的智慧", "image": "/shop/demo/product_demo.png", "video": null, "spec_name": null, "spec_value": null, "price": "170.99", "market_price": "175.99", "gold": 0, "content": null, "onsale_time": 0, "status": 1, "is_virtual": 0, "created_at": null, "updated_at": null }, { "id": 39, "cate_id": 0, "cate_name": null, "title": "藏在木头里的智慧", "subtitle": "藏在木头里的智慧", "image": "/shop/demo/product_demo.png", "video": null, "spec_name": null, "spec_value": null, "price": "435.08", "market_price": "440.08", "gold": 0, "content": null, "onsale_time": 0, "status": 1, "is_virtual": 0, "created_at": null, "updated_at": null }, { "id": 38, "cate_id": 0, "cate_name": null, "title": "藏在木头里的智慧", "subtitle": "藏在木头里的智慧", "image": "/shop/demo/product_demo.png", "video": null, "spec_name": null, "spec_value": null, "price": "457.41", "market_price": "462.41", "gold": 0, "content": null, "onsale_time": 0, "status": 1, "is_virtual": 0, "created_at": null, "updated_at": null } ], "total": 40 }, "message": "" }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML