设备模板商品
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{service}}/device/device-goods-list</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">{{token}}</td>
<td>是</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>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">device_id</td>
<td style="text-align: left;">7762</td>
<td>是</td>
<td>string</td>
<td>设备主键id</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 10000,
"data": [
{
"id": 59,//模板主键id
"admin_id": 122,
"name": "模板一-测试",//模板名称
"status": 1,
"create_time": 1746558016,
"update_time": 1755828768,
"stockData": [//模板商品
{
"id": 6964,//商品主键
"name": "农夫山泉水溶C100青皮桔味饮料445ml",//商品名
"banner": "//asset.dmg.com/goods/66406f5a7d1f6.png",//商品图片
"sell_price": 5,//售价
"cost_price": 4,//成本价
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,//商品库存
"num2": 0,//变更库存
"change": 0//变更数量
},
{
"id": 826,
"name": "外星人电解质水西柚口味瓶装500ml",
"banner": "//asset.dmg.com/goods/60a507cab5233.png",
"sell_price": 5,
"cost_price": 4,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 588,
"name": "康师傅汤大师精炖番茄牛腩面杯装139g",
"banner": "//asset.dmg.com/goods/60068ff6c27aa.png",
"sell_price": 5,
"cost_price": 4,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 459,
"name": "百事可乐瓶装600ml",
"banner": "//asset.dmg.com/goods/646958252b9f2.png",
"sell_price": 3,
"cost_price": 2.25,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 5417,
"name": "醒目苹果味汽水500ml",
"banner": "//asset.dmg.com/goods/654607523bf2b.png",
"sell_price": 3,
"cost_price": 2.33,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 442,
"name": "康师傅茉莉清茶500ml",
"banner": "//asset.dmg.com/goods/5fe93da2823fa.png",
"sell_price": 3,
"cost_price": 2.12,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 6210,
"name": "今麦郎芒顿小镇青苹果水500ml",
"banner": "//asset.dmg.com/goods/65fa850c3535e.png",
"sell_price": 2,
"cost_price": 1.2,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 741,
"name": "雪碧柠檬味汽水",
"banner": "//asset.dmg.com/goods/6207e913cb12b.png",
"sell_price": 3,
"cost_price": 2.2,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 5975,
"name": "今麦郎芒顿小镇柠檬水500ml",
"banner": "//asset.dmg.com/goods/65dabe0a6610a.png",
"sell_price": 2,
"cost_price": 1.2,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 2742,
"name": "双汇王中王火腿肠",
"banner": "//asset.dmg.com/goods/628edbbb9d026.png",
"sell_price": 2,
"cost_price": 1.28,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1103,
"name": "乡巴佬卤蛋30g",
"banner": "//asset.dmg.com/goods/60dea89e7224d.png",
"sell_price": 1.2,
"cost_price": 0.8,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1570,
"name": "娃哈哈AD钙450ml",
"banner": "//asset.dmg.com/goods/66bc211f58f28.png",
"sell_price": 5,
"cost_price": 3.2,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 785,
"name": "芬达橙味汽水瓶装500mL",
"banner": "//asset.dmg.com/goods/6469703f97682.png",
"sell_price": 3,
"cost_price": 2.2,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 663,
"name": "康师傅老坛酸菜牛肉面桶装118g",
"banner": "//asset.dmg.com/goods/622b606f4db97.png",
"sell_price": 5,
"cost_price": 4,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 2380,
"name": "娃哈哈非常可乐500ml",
"banner": "//asset.dmg.com/goods/6221be8649988.png",
"sell_price": 2,
"cost_price": 1.6,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 853,
"name": "茶π果味茶饮料西柚茉莉花茶500ml",
"banner": "//asset.dmg.com/goods/6087d2778f4ff.png",
"sell_price": 5,
"cost_price": 3.8,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 780,
"name": "尖叫青芒味瓶装550ml",
"banner": "//asset.dmg.com/goods/64bc8e0f910e1.png",
"sell_price": 5,
"cost_price": 3.6,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 528,
"name": "东方树叶茉莉花茶瓶装500ml",
"banner": "//asset.dmg.com/goods/600547a3ba134.png",
"sell_price": 5,
"cost_price": 3.7,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 438,
"name": "康师傅红烧牛肉面桶面110g",
"banner": "//asset.dmg.com/goods/6469678e4b6bd.png",
"sell_price": 5,
"cost_price": 4,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1370,
"name": "娃哈哈饮用纯净水596ml",
"banner": "//asset.dmg.com/goods/646969f3cda20.png",
"sell_price": 2,
"cost_price": 0.9,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 781,
"name": "可口可乐零度无糖汽水瓶装500ml",
"banner": "//asset.dmg.com/goods/6082631b08f77.png",
"sell_price": 3,
"cost_price": 2.4,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 749,
"name": "脉动青柠口味维生素饮料瓶装600ml",
"banner": "//asset.dmg.com/goods/6207e2a382176.png",
"sell_price": 5,
"cost_price": 3.5,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 1196,
"name": "娃哈哈冰红茶500ml",
"banner": "//asset.dmg.com/goods/6274f0bb3a9cc.png",
"sell_price": 3,
"cost_price": 1.8,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 444,
"name": "统一绿茶瓶装500ml",
"banner": "//asset.dmg.com/goods/5fe93f1dc99e3.png",
"sell_price": 3,
"cost_price": 2.7,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 463,
"name": "红牛罐装250ml",
"banner": "//asset.dmg.com/goods/6210e83d89669.png",
"sell_price": 6,
"cost_price": 4.7,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
}
]
},
{
"id": 31,
"admin_id": 122,
"name": "模板一",
"status": 1,
"create_time": 1744942530,
"update_time": 1744942530,
"stockData": [
{
"id": 1021,
"name": "国产樱桃盒装零售版",
"banner": "//asset.dmg.com/goods/629b5b8fa9f4d.png",
"sell_price": 3,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 2040,
"num2": 2040,
"change": 0
},
{
"id": 3789,
"name": "统一双萃柠檬茶鸭屎香风味450ml",
"banner": "//asset.dmg.com/goods/64252eb51021c.png",
"sell_price": 15,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 35,
"num2": 35,
"change": 0
},
{
"id": 1144,
"name": "蒙牛纯牛奶250ml",
"banner": "//asset.dmg.com/goods/60ee96d37cbe6.png",
"sell_price": 3,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 31,
"num2": 31,
"change": 0
},
{
"id": 3392,
"name": "Fentimans芬迪曼玫瑰柠檬水275ml",
"banner": "//asset.dmg.com/goods/638d5a5c91dc0.png",
"sell_price": 33,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 20,
"num2": 20,
"change": 0
},
{
"id": 438,
"name": "康师傅红烧牛肉面桶面110g",
"banner": "//asset.dmg.com/goods/6469678e4b6bd.png",
"sell_price": 10,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 51,
"name": "百威啤酒听装500ml",
"banner": "//asset.dmg.com/goods/6154b44ca0ac5.png",
"sell_price": 3,
"cost_price": 3,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 129,
"name": "可比克烧烤味薯片罐装45g",
"banner": "//asset.dmg.com/goods/5d3907cd489a8.png",
"sell_price": 10,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 2557,
"name": "四洛克酸葡萄味鸡尾酒695ml",
"banner": "//asset.dmg.com/goods/6253d2b766d3d.png",
"sell_price": 7,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 372,
"name": "信远斋桂花酸梅汤瓶装500ml",
"banner": "//asset.dmg.com/goods/6111e9e995b8b.png",
"sell_price": 5,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 95,
"name": "野山坡生榨沙棘汁瓶装350nl",
"banner": "//asset.dmg.com/goods/5c9249ff1dc32.png",
"sell_price": 2,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 519,
"name": "百岁山矿泉水瓶装570ml",
"banner": "//asset.dmg.com/goods/600540a181536.png",
"sell_price": 0.01,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": null,
"num": 1,
"num2": 1,
"change": 0
},
{
"id": 433,
"name": "维他柠檬茶500ml",
"banner": "//asset.dmg.com/goods/5fe9352511dd8.png",
"sell_price": 13.8,
"cost_price": 5,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 7585,
"name": "旺旺碎冰冰",
"banner": "//asset.dmg.com/goods/6670f95b542bd.png",
"sell_price": 2,
"cost_price": 1,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 383,
"name": "加多宝金罐凉茶310ml",
"banner": "//asset.dmg.com/goods/5fdb21812fd69.png",
"sell_price": 12.8,
"cost_price": 5,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 740,
"name": "可口可乐瓶装500ml",
"banner": "//asset.dmg.com/goods/6207e98800cb4.png",
"sell_price": 3,
"cost_price": 2,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 452,
"name": "元气森林苏打气泡水白桃味瓶装480ml",
"banner": "//asset.dmg.com/goods/6207ec309d3c5.png",
"sell_price": 4,
"cost_price": 3,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 444,
"name": "统一绿茶瓶装500ml",
"banner": "//asset.dmg.com/goods/5fe93f1dc99e3.png",
"sell_price": 0.01,
"cost_price": 0.01,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 514,
"name": "可口可乐罐装330ml",
"banner": "//asset.dmg.com/goods/619bd8342f0f1.png",
"sell_price": 0.01,
"cost_price": 0.01,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 742,
"name": "芬达罐装330ml",
"banner": "//asset.dmg.com/goods/608130ebc5fdb.png",
"sell_price": 1,
"cost_price": 0.1,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 457,
"name": "太平梳打饼干奶盐味袋装100g",
"banner": "//asset.dmg.com/goods/5ffeb5698e1f0.png",
"sell_price": 5,
"cost_price": 3.5,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 447,
"name": "统一老坛酸菜牛肉面杯面120g",
"banner": "//asset.dmg.com/goods/622b61ee619b2.png",
"sell_price": 5,
"cost_price": 4.5,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 4042,
"name": "安德鲁蓝莓冰糖葫芦盒装",
"banner": "//asset.dmg.com/goods/646f567670d50.png",
"sell_price": 18,
"cost_price": 5,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 4097,
"name": "勤奋猫猫山王榴莲果肉100g",
"banner": "//asset.dmg.com/goods/64801dc5ab654.png",
"sell_price": 49.9,
"cost_price": 30,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 4058,
"name": "猫山王榴莲冰糖葫芦盒装",
"banner": "//asset.dmg.com/goods/646f56102efa7.png",
"sell_price": 29.9,
"cost_price": 19.9,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 779,
"name": "尖叫纤维型运动饮料瓶装550ml",
"banner": "//asset.dmg.com/goods/64bc8dfd91fdc.png",
"sell_price": 0.01,
"cost_price": 0.01,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 463,
"name": "红牛罐装250ml",
"banner": "//asset.dmg.com/goods/6210e83d89669.png",
"sell_price": 0.05,
"cost_price": 0.01,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 144,
"name": "小怡宝350毫升",
"banner": "//asset.dmg.com/goods/5d3906bfcc826.png",
"sell_price": 2,
"cost_price": 1.3,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 440,
"name": "美年达橙味罐装330ml",
"banner": "//asset.dmg.com/goods/619bb68f17334.png",
"sell_price": 3.5,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": -1,
"num2": -1,
"change": 0
},
{
"id": 441,
"name": "农夫山泉矿泉水550ml",
"banner": "//asset.dmg.com/goods/5fe93d7a38209.png",
"sell_price": 2,
"cost_price": 1.6,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": -2,
"num2": -2,
"change": 0
},
{
"id": 443,
"name": "多力多滋_劲浓芝士味_30g",
"banner": "//asset.dmg.com/goods/5fe93df137d53.png",
"sell_price": 3,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": -2,
"num2": -2,
"change": 0
},
{
"id": 178,
"name": "香飘飘奶茶红豆味64g",
"banner": "//asset.dmg.com/goods/5ec739e795f02.png",
"sell_price": 5,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": -2,
"num2": -2,
"change": 0
},
{
"id": 435,
"name": "奥利奥夹心饼干116g",
"banner": "//asset.dmg.com/goods/5fe93b8a674a4.png",
"sell_price": 5,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": -3,
"num2": -3,
"change": 0
},
{
"id": 5098,
"name": "脉动青柠味600ml",
"banner": "//asset.dmg.com/goods/64d5aa702274a.png",
"sell_price": 5,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": -4,
"num2": -4,
"change": 0
},
{
"id": 474,
"name": "农夫山泉水溶C100柠檬味瓶装445ml",
"banner": "//asset.dmg.com/goods/6004eedc5105e.png",
"sell_price": 1.5,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": null,
"num": -5,
"num2": -5,
"change": 0
}
]
},
{
"id": 28,
"admin_id": 122,
"name": "雪糕",
"status": 1,
"create_time": 1744364433,
"update_time": 1744868229,
"stockData": [
{
"id": 129,
"name": "可比克烧烤味薯片罐装45g",
"banner": "//asset.dmg.com/goods/5d3907cd489a8.png",
"sell_price": 0,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
}
]
},
{
"id": 27,
"admin_id": 122,
"name": "健身房1",
"status": 1,
"create_time": 1744363100,
"update_time": 1744363172,
"stockData": [
{
"id": 671,
"name": "三只松鼠素食小锅锅碗装350g",
"banner": "//asset.dmg.com/goods/6033180626454.jpg",
"sell_price": 0,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 95,
"name": "野山坡生榨沙棘汁瓶装350nl",
"banner": "//asset.dmg.com/goods/5c9249ff1dc32.png",
"sell_price": 0,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
}
]
},
{
"id": 26,
"admin_id": 122,
"name": "工厂",
"status": 1,
"create_time": 1744362862,
"update_time": 1744362862,
"stockData": [
{
"id": 146,
"name": "百事可乐瓶装300ml",
"banner": "//asset.dmg.com/goods/6371fd6809f09.png",
"sell_price": 21,
"cost_price": 3,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
},
{
"id": 51,
"name": "百威啤酒听装500ml",
"banner": "//asset.dmg.com/goods/6154b44ca0ac5.png",
"sell_price": 0,
"cost_price": 0,
"member_price": 0,
"discount_price": 0,
"discount_time": "",
"num": 0,
"num2": 0,
"change": 0
}
]
}
],
"msg": "Success"
}
</code></pre>