编辑模板库存
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{service}}/device/device-goods-edit</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>请求Query参数</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;">XDEBUG_SESSION_START</td>
<td style="text-align: left;">193</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>
<tr>
<td style="text-align: left;">template_id</td>
<td style="text-align: left;">31</td>
<td>是</td>
<td>string</td>
<td>模板主键id</td>
</tr>
<tr>
<td style="text-align: left;">stock</td>
<td style="text-align: left;">[{"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":2038,"change":2},{"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}]</td>
<td>是</td>
<td>string</td>
<td>[id => 商品ID , name => 商品名, num=>当前库存 , num2 => 变更后库存 ]</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 10000,
"msg": "Success"
}
</code></pre>