运营商-售货机接口文档

undefined


运营商商品列表

<h5>简要描述</h5> <ul> <li>无</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{service}}/goods/supply-list</code> </li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>Header</h5> <table> <thead> <tr> <th style="text-align: left;">header</th> <th style="text-align: left;">必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">token</td> <td style="text-align: left;">是</td> <td>string</td> <td>无</td> </tr> </tbody> </table> <h5>请求Body参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">query</td> <td style="text-align: left;">否</td> <td>string</td> <td>关键字搜索</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ "code": 10000, "data": [ { "id": 4085,商品主键ID "detect_api_id": 19,模型ID "name": "象牌无糖苏打水多口味",名称 "sku": "9800000000",SKU "banner": "//asset.dmg.com/goods/647eeec1a75ee.png",图片 "remark": "", "status": 1, "sell_price": 10, "cost_price": 0.01,成本价(运营商) "create_time": 1685933957, "update_time": 1686040257, "cost_origin": 0.01,成本价(主库参考价) "sell_origin": 10,售价(主库参考价) "price": 10 售价(运营商) }, { "id": 741, "detect_api_id": 19, "name": "雪碧瓶装500ml", "sku": "DMG20210711152415", "banner": "//asset.dmg.com/goods/6207e913cb12b.png", "remark": "", "status": 1, "sell_price": 3, "cost_price": 2.29, "create_time": 1619077125, "update_time": 1650790923, "cost_origin": 2.29, "sell_origin": 3, "price": 3 }, { "id": 293, "detect_api_id": 19, "name": "可口可乐300ml", "sku": "Y016", "banner": "//asset.dmg.com/goods/5f4613be0bebf.png", "remark": "", "status": 1, "sell_price": 2, "cost_price": 1.89, "create_time": 1598426389, "update_time": 1641436578, "cost_origin": 1.89, "sell_origin": 2, "price": 2 }, { "id": 441, "detect_api_id": 19, "name": "农夫山泉矿泉水550ml", "sku": "119219608199751710", "banner": "//asset.dmg.com/goods/5fe93d7a38209.png", "remark": "", "status": 1, "sell_price": 2, "cost_price": 1, "create_time": 1609121146, "update_time": 1620619326, "cost_origin": 1, "sell_origin": 2, "price": 2 }, { "id": 29, "detect_api_id": 19, "name": "Perrier巴黎水多口味瓶装330ml", "sku": "DMG20210711152656", "banner": "//asset.dmg.com/goods/635257160b795.png", "remark": "", "status": 1, "sell_price": 0.01, "cost_price": 1, "create_time": 1536739882.0796, "update_time": 1666340630, "cost_origin": 0.01, "sell_origin": 0.01, "price": 2 } ], "msg": "Success" } </code></pre>

页面列表

ITEM_HTML