设备库存
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{service}}/device/stock-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;">device_id</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>设备主键id</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 10000,
"data": [
{
"id": 2956,
"name": "今麦郎芒顿气泡水500ml",商品名
"banner": "//asset.dmg.com/goods/6306de7645580.png",图片
"price": 3.5,价格
"num": 999,库存1(变更前)
"num2": 999,库存2(变更后)
"change": 0 库存变动值(编辑库存接口使用)
},
{
"id": 2891,
"name": "今麦郎青梅绿茶饮料500ml",
"banner": "//asset.dmg.com/goods/62d7affac84c4.png",
"price": 3,
"num": 999,
"num2": 999,
"change": 0
},
{
"id": 552,
"name": "梁丰麦丽素袋装55g",
"banner": "//asset.dmg.com/goods/6258d9e08e3fd.png",
"price": 4,
"num": 998,
"num2": 998,
"change": 0
},
{
"id": 2066,
"name": "华丽友小米锅巴75g",
"banner": "//asset.dmg.com/goods/63f812a7afa41.png",
"price": 3,
"num": 998,
"num2": 998,
"change": 0
},
{
"id": 1544,
"name": "今麦郎芒顿小镇蜜桃水瓶装500ml",
"banner": "//asset.dmg.com/goods/61657be426bb4.png",
"price": 3,
"num": 998,
"num2": 998,
"change": 0
},
{
"id": 3391,
"name": "徽趣蟹香蛋黄锅巴56g",
"banner": "//asset.dmg.com/goods/6389aa6abed19.png",
"price": 4,
"num": 997,
"num2": 997,
"change": 0
},
{
"id": 3151,
"name": "名沙坚果沙琪玛黑糖味430g",
"banner": "//asset.dmg.com/goods/6344c4ce43bb4.png",
"price": 0.1,
"num": 997,
"num2": 997,
"change": 0
},
{
"id": 1477,
"name": "补差价专用",
"banner": "//asset.dmg.com/goods/62a80f2266499.png",
"price": 0.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 2440,
"name": "白象方便面桶装107g",
"banner": "//asset.dmg.com/goods/62370352342e1.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1132,
"name": "今麦郎柚子味复合果汁饮料500ml",
"banner": "//asset.dmg.com/goods/62958121d46b8.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 2776,
"name": "今麦郎海盐菠萝500ml",
"banner": "//asset.dmg.com/goods/62a99b9f88b61.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 2890,
"name": "今麦郎茉莉蜜茶调味茶饮料500ml",
"banner": "//asset.dmg.com/goods/62d75f8cd2384.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 488,
"name": "统一香辣牛肉面桶装107g",
"banner": "//asset.dmg.com/goods/64af9213b1286.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 948,
"name": "农夫山泉1.5L",
"banner": "//asset.dmg.com/goods/6469774a29bba.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 947,
"name": "冰糖雪梨1L",
"banner": "//asset.dmg.com/goods/62bd599bcd0fb.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 2002,
"name": "康师傅绿茶瓶装1L",
"banner": "//asset.dmg.com/goods/61bc9e73630bc.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 882,
"name": "康师傅冰红茶柠檬口味1L",
"banner": "//asset.dmg.com/goods/6274efb23146a.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1742,
"name": "康师傅藤椒牛肉面桶装85g",
"banner": "//asset.dmg.com/goods/6189d55008569.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1474,
"name": "双汇旋风火腿肠袋装48g",
"banner": "//asset.dmg.com/goods/6159676602ead.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1351,
"name": "飞天茅台2021|愚公酒柜专供500ml",
"banner": "//asset.dmg.com/goods/61431ff3cbcfc.png",
"price": 0.03,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1352,
"name": "五粮液2020|愚公酒柜专供500ml",
"banner": "//asset.dmg.com/goods/614320e86e65a.png",
"price": 0.02,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1350,
"name": "古井贡酒20年|愚公酒柜专供500ml",
"banner": "//asset.dmg.com/goods/61431f91a0d02.png",
"price": 0.01,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1342,
"name": "好丽友Q蒂两枚装56g",
"banner": "//asset.dmg.com/goods/617e9f8a4baa5.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1337,
"name": "预收款,请联系13675627785!",
"banner": "//asset.dmg.com/goods/613ca1695631e.png",
"price": 99,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 504,
"name": "卫龙亲嘴烧袋装28g",
"banner": "//asset.dmg.com/goods/60050c7e04294.png",
"price": 1.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1117,
"name": "合味道多口味方便面杯装",
"banner": "//asset.dmg.com/goods/614339ef6dd4c.png",
"price": 6,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 496,
"name": "爱乡亲手撕包袋装84g",
"banner": "//asset.dmg.com/goods/617ea6a0759fd.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1087,
"name": "果乐果香蓝莓味85g",
"banner": "//asset.dmg.com/goods/6140a8b28b255.png",
"price": 4.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 965,
"name": "卫龙魔芋爽18g",
"banner": "//asset.dmg.com/goods/61cb0204610f8.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 500,
"name": "卫龙大面筋袋装65g",
"banner": "//asset.dmg.com/goods/614357e0cdce4.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 505,
"name": "唐小闲烤根脖袋装42g",
"banner": "//asset.dmg.com/goods/60050d071a139.png",
"price": 2.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1083,
"name": "白家阿宽红油面皮桶装105g",
"banner": "//asset.dmg.com/goods/62b55e6d47fc8.png",
"price": 4.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1200,
"name": "友臣肉松饼休闲零食小吃散装",
"banner": "//asset.dmg.com/goods/63a2b0edc849d.png",
"price": 1.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 510,
"name": "双汇台式烤香肠袋装38g",
"banner": "//asset.dmg.com/goods/600530d9a06b6.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1085,
"name": "白蓝淮南牛肉汤105g",
"banner": "//asset.dmg.com/goods/617ea81034540.png",
"price": 6.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 663,
"name": "康师傅老坛酸菜牛肉面桶装118g",
"banner": "//asset.dmg.com/goods/622b606f4db97.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 766,
"name": "雪碧清爽柠檬味汽水罐装330ml",
"banner": "//asset.dmg.com/goods/61a36ccfd28dc.png",
"price": 2.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 514,
"name": "可口可乐罐装330ml",
"banner": "//asset.dmg.com/goods/619bd8342f0f1.png",
"price": 2.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 452,
"name": "元气森林苏打气泡水白桃味瓶装480ml",
"banner": "//asset.dmg.com/goods/6207ec309d3c5.png",
"price": 5.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 936,
"name": "剐水饮用天然水500ml",
"banner": "//asset.dmg.com/goods/60b0e2089d931.png",
"price": 2,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 494,
"name": "卫龙大辣棒袋装78g",
"banner": "//asset.dmg.com/goods/6005010e1cdd8.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 502,
"name": "嗨吃家酸辣粉桶装112g",
"banner": "//asset.dmg.com/goods/60eabe25386c0.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 553,
"name": "统一阿萨姆原味奶茶瓶装500ml",
"banner": "//asset.dmg.com/goods/600647bcba7a1.png",
"price": 4.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 749,
"name": "脉动青柠口味维生素饮料瓶装600ml",
"banner": "//asset.dmg.com/goods/6207e2a382176.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 570,
"name": "达利园好吃点熊字饼袋装115g",
"banner": "//asset.dmg.com/goods/60a36862780d4.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 560,
"name": "旺仔牛奶原味罐装245ml",
"banner": "//asset.dmg.com/goods/60064be4147d5.png",
"price": 5.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 463,
"name": "红牛罐装250ml",
"banner": "//asset.dmg.com/goods/6210e83d89669.png",
"price": 6,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 492,
"name": "美汁源果粒奶优菠萝味瓶装450ml",
"banner": "//asset.dmg.com/goods/6004ff8097ba1.png",
"price": 4.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 450,
"name": " 美汁源果粒橙瓶装420ml ",
"banner": "//asset.dmg.com/goods/64479b6508b5d.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 556,
"name": "农夫山泉茶π蜜桃乌龙茶瓶装500ml",
"banner": "//asset.dmg.com/goods/60064a345796f.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 775,
"name": "雪花啤酒清爽罐装330ML",
"banner": "//asset.dmg.com/goods/619bbe450f49b.png",
"price": 5.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 926,
"name": "潺水饮用天然水550ml",
"banner": "//asset.dmg.com/goods/6113c8d6d2564.png",
"price": 2,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 823,
"name": "乐事(Lay's)薯片清新芥香味袋装70克",
"banner": "//asset.dmg.com/goods/61a3987565374.png",
"price": 3.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 479,
"name": "乐事(Lay's)薯片美国经典原味袋装40克",
"banner": "//asset.dmg.com/goods/61a396edb7f68.png",
"price": 3.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 744,
"name": "康师傅3+2苏打夹心柠檬味袋装125g",
"banner": "//asset.dmg.com/goods/63476a105da31.png",
"price": 6,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 482,
"name": "好丽友派巧克力味盒装12枚408g",
"banner": "//asset.dmg.com/goods/6004f400a55a5.png",
"price": 4,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 740,
"name": "可口可乐瓶装500ml",
"banner": "//asset.dmg.com/goods/6207e98800cb4.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 444,
"name": "统一绿茶瓶装500ml",
"banner": "//asset.dmg.com/goods/5fe93f1dc99e3.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 476,
"name": "百事可乐罐装330ml",
"banner": "//asset.dmg.com/goods/618b1bc79c0d8.png",
"price": 2.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 738,
"name": "统一冰红茶瓶装明星版500ml",
"banner": "//asset.dmg.com/goods/61bfb8ec13155.png",
"price": 3,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 438,
"name": "康师傅红烧牛肉面桶面109g",
"banner": "//asset.dmg.com/goods/6469678e4b6bd.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 801,
"name": "芬达橙味汽水罐装330ml",
"banner": "//asset.dmg.com/goods/60827b6aec206.png",
"price": 2.5,
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 664,
"name": "康师傅香辣牛肉面桶装",
"banner": "//asset.dmg.com/goods/60b718d34a8a1.png",
"price": 5,
"num": 0,
"num2": 0,
"change": 0
}
],
"msg": "Success"
}
</code></pre>