device - 设备接口
- api/shop/device/get GET 根据id获取
- api/shop/device/getdevicetypelist GET 获取设备类型
- api/shop/device/getlist GET 获取设备分页列表
- api/shop/device/getfulllist GET 获取所有设备列表
- api/shop/device/create POST 新增设备
- api/shop/device/update POST 修改设备
- api/shop/device/delete POST 删除设备
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | integer |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 编码 |
| deviceTypeId | integer | 类型id |
| deviceTypeName | string | 类型名称 |
| id | integer | id |
| inUse | boolean | 启用 |
| iP | string | IP |
| mac | string | Mac |
| shopId | integer | 门店Id |
| shopName | string | 门店名称 |
| stallId | integer | 摊位Id |
| stallName | string | 摊位名称 |
| timeStamp | integer | 时间戳 |
响应示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"stallId": 3,
"stallName": "",
"ip": "",
"code": "",
"mac": "",
"timeStamp": 8,
"inUse": true,
"deviceTypeId": 10,
"deviceTypeName": "",
"id": 12
}
请求参数
无.
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| brand | string | 品牌 |
| code | string | 型号 |
| id | integer | id |
| imagePath | string | 图片路径 |
| keyboardMemberCard | integer | 按键数 |
| keyboardPage | integer | 按键页数 |
| keyboardX | integer | X键位 |
| keyboardY | integer | Y键位 |
| name | string | 名称 |
| productMaxCount | integer | 商品总数 |
| scalesDeviceType | string | 0:太航; 1:安卓智能; 2:云鼎定制; 3:友声 |
响应示例
application/json, text/json
[
{
"code": "",
"name": "",
"brand": "",
"keyboardX": 4,
"keyboardY": 5,
"keyboardMemberCard": 6,
"keyboardPage": 7,
"productMaxCount": 8,
"scalesDeviceType": 0,
"imagePath": "",
"id": 10
},
{
"code": "",
"name": "",
"brand": "",
"keyboardX": 4,
"keyboardY": 5,
"keyboardMemberCard": 6,
"keyboardPage": 7,
"productMaxCount": 8,
"scalesDeviceType": 0,
"imagePath": "",
"id": 10
}
]
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| deviceTypeId | integer | |
| keyword | string | |
| pageIndex | integer | |
| pageSize | integer | |
| shopId | integer | |
| stallId | integer |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| ┆- code | string | 编码 |
| ┆- deviceTypeId | integer | 类型id |
| ┆- deviceTypeName | string | 类型名称 |
| ┆- id | integer | id |
| ┆- inUse | boolean | 启用 |
| ┆- iP | string | IP |
| ┆- mac | string | Mac |
| ┆- shopId | integer | 门店Id |
| ┆- shopName | string | 门店名称 |
| ┆- stallId | integer | 摊位Id |
| ┆- stallName | string | 摊位名称 |
| ┆- timeStamp | integer | 时间戳 |
| pageIndex | integer | |
| pageSize | integer | |
| sumData | {...} | |
| ┆- code | string | 编码 |
| ┆- deviceTypeId | integer | 类型id |
| ┆- deviceTypeName | string | 类型名称 |
| ┆- id | integer | id |
| ┆- inUse | boolean | 启用 |
| ┆- iP | string | IP |
| ┆- mac | string | Mac |
| ┆- shopId | integer | 门店Id |
| ┆- shopName | string | 门店名称 |
| ┆- stallId | integer | 摊位Id |
| ┆- stallName | string | 摊位名称 |
| ┆- timeStamp | integer | 时间戳 |
| totalCount | integer |
响应示例
application/json, text/json
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| keyword | string | |
| shopId | integer | |
| stallType | integer |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 编码 |
| deviceTypeId | integer | 类型id |
| deviceTypeName | string | 类型名称 |
| id | integer | id |
| inUse | boolean | 启用 |
| iP | string | IP |
| mac | string | Mac |
| shopId | integer | 门店Id |
| shopName | string | 门店名称 |
| stallId | integer | 摊位Id |
| stallName | string | 摊位名称 |
| timeStamp | integer | 时间戳 |
响应示例
application/json, text/json
[
{
"shopId": 1,
"shopName": "",
"stallId": 3,
"stallName": "",
"ip": "",
"code": "",
"mac": "",
"timeStamp": 8,
"inUse": true,
"deviceTypeId": 10,
"deviceTypeName": "",
"id": 12
},
{
"shopId": 1,
"shopName": "",
"stallId": 3,
"stallName": "",
"ip": "",
"code": "",
"mac": "",
"timeStamp": 8,
"inUse": true,
"deviceTypeId": 10,
"deviceTypeName": "",
"id": 12
}
]
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 编码 |
| deviceTypeId | integer | 类型id |
| deviceTypeName | string | 类型名称 |
| id | integer | id |
| inUse | boolean | 启用 |
| iP | string | IP |
| mac | string | Mac |
| shopId | integer | 门店Id |
| shopName | string | 门店名称 |
| stallId | integer | 摊位Id |
| stallName | string | 摊位名称 |
| timeStamp | integer | 时间戳 |
请求示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"stallId": 3,
"stallName": "",
"ip": "",
"code": "",
"mac": "",
"timeStamp": 8,
"inUse": true,
"deviceTypeId": 10,
"deviceTypeName": "",
"id": 12
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 编码 |
| deviceTypeId | integer | 类型id |
| deviceTypeName | string | 类型名称 |
| id | integer | id |
| inUse | boolean | 启用 |
| iP | string | IP |
| mac | string | Mac |
| shopId | integer | 门店Id |
| shopName | string | 门店名称 |
| stallId | integer | 摊位Id |
| stallName | string | 摊位名称 |
| timeStamp | integer | 时间戳 |
请求示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"stallId": 3,
"stallName": "",
"ip": "",
"code": "",
"mac": "",
"timeStamp": 8,
"inUse": true,
"deviceTypeId": 10,
"deviceTypeName": "",
"id": 12
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
请求参数
| 无 |
|---|
请求示例
application/json, text/json
{}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}