运营商-售货机接口文档

undefined


自建商品模板

<h5>简要描述</h5> <ul> <li>运营商选取商品加入运营商商品列表</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{service}}/goods/template</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": [ { "value": "DMG20210711152656:Perrier巴黎水多口味瓶装330ml", "data": "Perrier巴黎水多口味瓶装330ml",商品名 "id": 29,商品主键ID "banner": "//asset.dmg.com/goods/635257160b795.png"图片 }, { "value": "DMG20210930142134:百威啤酒听装500ml", "data": "百威啤酒听装500ml", "id": 51, "banner": "//asset.dmg.com/goods/6154b44ca0ac5.png" }, { "value": "DMG20210620143021:野山坡生榨沙棘汁瓶装350nl", "data": "野山坡生榨沙棘汁瓶装350nl", "id": 95, "banner": "//asset.dmg.com/goods/5c9249ff1dc32.png" }, { "value": "DMG20220226100005:可比克烧烤味薯片罐装45g", "data": "可比克烧烤味薯片罐装45g", "id": 129, "banner": "//asset.dmg.com/goods/5d3907cd489a8.png" }, { "value": "6915766004282:百事可乐瓶装300ml", "data": "百事可乐瓶装300ml", "id": 146, "banner": "//asset.dmg.com/goods/6371fd6809f09.png" }, { "value": "6938888888615 :香飘飘奶茶红豆味64g", "data": "香飘飘奶茶红豆味64g", "id": 178, "banner": "//asset.dmg.com/goods/5ec739e795f02.png" }, { "value": "Y016:可口可乐300ml", "data": "可口可乐300ml", "id": 293, "banner": "//asset.dmg.com/goods/5f4613be0bebf.png" }, { "value": "DMG20210810105005:信远斋桂花酸梅汤瓶装500ml", "data": "信远斋桂花酸梅汤瓶装500ml", "id": 372, "banner": "//asset.dmg.com/goods/6111e9e995b8b.png" }, { "value": "4891599311013:加多宝金罐凉茶310ml", "data": "加多宝金罐凉茶310ml", "id": 383, "banner": "//asset.dmg.com/goods/5fdb21812fd69.png" }, { "value": "6921294389906:康师傅水蜜桃饮料瓶装1L", "data": "康师傅水蜜桃饮料瓶装1L", "id": 390, "banner": "//asset.dmg.com/goods/5fe20ac1a398b.png" }, { "value": "41:康师傅矿泉水500ml", "data": "康师傅矿泉水500ml", "id": 423, "banner": "//asset.dmg.com/goods/5fe21467acf78.png" }, { "value": "119219606052268062:维他柠檬茶500ml", "data": "维他柠檬茶500ml", "id": 433, "banner": "//asset.dmg.com/goods/5fe9352511dd8.png" }, { "value": "119219606673025054:怡宝饮用纯净水555ml", "data": "怡宝饮用纯净水555ml", "id": 434, "banner": "//asset.dmg.com/goods/5fe93628f2eea.png" }, { "value": "119219606874286110:奥利奥夹心饼干116g", "data": "奥利奥夹心饼干116g", "id": 435, "banner": "//asset.dmg.com/goods/5fe93b8a674a4.png" }, { "value": "119219607260227614:娃哈哈营养快线原味500ml", "data": "娃哈哈营养快线原味500ml", "id": 436, "banner": "//asset.dmg.com/goods/61a8cc3557a4c.png" }, { "value": "119219607478265886:脉动水蜜桃味600ml", "data": "脉动水蜜桃味600ml", "id": 437, "banner": "//asset.dmg.com/goods/6207e2addd310.png" }, { "value": "119219607662815262:康师傅红烧牛肉面桶面109g", "data": "康师傅红烧牛肉面桶面109g", "id": 438, "banner": "//asset.dmg.com/goods/6469678e4b6bd.png" }, { "value": "119219607830652958:旺旺浪味仙田园蔬菜味70g", "data": "旺旺浪味仙田园蔬菜味70g", "id": 439, "banner": "//asset.dmg.com/goods/5fe93d16376f6.png" }, { "value": "119219608015202334:美年达橙味罐装330ml", "data": "美年达橙味罐装330ml", "id": 440, "banner": "//asset.dmg.com/goods/619bb68f17334.png" }, { "value": "119219608199751710:农夫山泉矿泉水550ml", "data": "农夫山泉矿泉水550ml", "id": 441, "banner": "//asset.dmg.com/goods/5fe93d7a38209.png" } ], "msg": "Success" } </code></pre>

页面列表

ITEM_HTML