获取设备信息及商品
<h5>简要描述</h5>
<ul>
<li>获取设备商品</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/cigarette/mini/getInitInfoByDeviceMac</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">deviceMac</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>设备Mac</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 200,
"msg": null,
"obj": {
"equipment": {
"id": "1209113093341302710",
"name": "",
"createTime": "2019-12-23 22:06:40",
"updateTime": "2020-01-13 20:47:54",
"delFlag": 1,
"deviceId": "JJ21040000",
"bizTid": "",
"merchantId": "1202471020880809984",
"storeId": "1202471020989861888",
"deviceType": 5,
"mode": 1,
"address": "汇刷",
"status": 1,
"deviceMac": "JJ21040000",
"deviceName": "JJ21040000",
"connectMode": 1
},
"inventories": [
{
"id": "1209113093341302710",
"name": null,
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 1,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302711",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 2,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302712",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 3,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302713",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 4,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302714",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 5,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302715",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 6,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302716",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 7,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302717",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"serviceProviderId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 8,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
},
{
"id": "1209113093341302718",
"name": "",
"createTime": "2021-04-10 16:47:25",
"updateTime": "2021-04-10 16:47:31",
"delFlag": 1,
"equipmentId": "1209113093341302710",
"inventory": 1,
"goodsId": "1380775421368762368",
"num": 9,
"goods": {
"id": "1380775421368762368",
"name": null,
"createTime": "2021-04-10 14:51:29",
"updateTime": "2021-04-10 14:51:29",
"delFlag": 1,
"goodsName": "蓝莓棒",
"itemNumber": "002",
"goodsPrice": 0.01,
"isShelf": 1,
"sort": 1,
"stockNum": 1000,
"salesNum": 0,
"source": 1,
"goodsCode": "002",
"goodsPic": "1380775355581104128",
"goodsCategory": "1380774470100615168",
"merchantId": "1380751613562654720",
"merchantUserId": "1380751614284075008",
"systemCategory": null,
"industryCategory": 0,
"saleRemark": "",
"unit": "根",
"storeId": "1380751613894004736"
}
}
]
}
}</code></pre>
<h5>equipment参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">deviceName</td>
<td style="text-align: left;">String</td>
<td>设备名称</td>
</tr>
<tr>
<td style="text-align: left;">serviceProviderId</td>
<td style="text-align: left;">String</td>
<td>服务商ID</td>
</tr>
<tr>
<td style="text-align: left;">merchantId</td>
<td style="text-align: left;">String</td>
<td>商户ID</td>
</tr>
<tr>
<td style="text-align: left;">storeId</td>
<td style="text-align: left;">String</td>
<td>门店ID</td>
</tr>
</tbody>
</table>
<h5>inventories参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">inventory</td>
<td style="text-align: left;">String</td>
<td>库存</td>
</tr>
<tr>
<td style="text-align: left;">num</td>
<td style="text-align: left;">String</td>
<td>格子号</td>
</tr>
<tr>
<td style="text-align: left;">goods</td>
<td style="text-align: left;">object</td>
<td>商品信息</td>
</tr>
</tbody>
</table>
<h5>goods参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">goodsName</td>
<td style="text-align: left;">String</td>
<td>名称</td>
</tr>
<tr>
<td style="text-align: left;">goodsPrice</td>
<td style="text-align: left;">double</td>
<td>价格 单位:元</td>
</tr>
<tr>
<td style="text-align: left;">goodsPic</td>
<td style="text-align: left;">String</td>
<td>图片</td>
</tr>
<tr>
<td style="text-align: left;">unit</td>
<td style="text-align: left;">object</td>
<td>单位</td>
</tr>
<tr>
<td style="text-align: left;">merchantId</td>
<td style="text-align: left;">String</td>
<td>商户ID</td>
</tr>
<tr>
<td style="text-align: left;">storeId</td>
<td style="text-align: left;">String</td>
<td>门店ID</td>
</tr>
</tbody>
</table>