接口 terminal.terminal.list

接口说明

获取设备列表,每页输出 10 条记录

业务参数

参数名称 类型 是否必须 说明
Page int Y 获取第 N 页
UpdatedAt int N 大于等于 UpdateAt(时间戳)
ActiveAt int N 大于等于 ActiveAt 激活时间(时间戳)

返回示例

参考接口:terminal.terminal.get 接口返回的定义

{
  "error_code": 0,
  "error_msg": "SUCCESS",
  "data": {
    "total": 2, // 总记录数
    "per_page": 10, //每页N条记录
    "current_page": 1, //当前第N页
    "last_page": 1,
    "from": 0,
    "to": 10,
    "data": [
      {
        "id": "5a935c434c65dc000fa0817a", //设备ID
        "Name": "友朋02", //设备名称
        "DeviceCode": "SZW02", //设备号
        "CabinetCount": 3, //货柜数量
        "TerminalConfigVO": { //运营配置
          "Address": "深圳湾科技生态园11楼", // 地址
          "PlaceID": "592f738e8fa37d110035a8d7", //场地ID
          "PlaceVO": {
            "Name": "友朋", // 场地名称
            "Province": "广东省", //省份
            "City": "深圳市", // 城市
            "District": "南山区", // 区
            "Subject": "深圳友朋智能商业科技有限公司" //场地主体
          },
          "PriceRuleID": "592f72a0f8b30b0f00c61402", //价格策略id
          "VirtualShelfID": "59e80b4c475ae1001026623b" // 虚拟货架id
          "Location": [0, 0] // [ 经度, 纬度]
        },
        "CargoList": [ //货道详情
          {
            "Capacity": 5, // 容量
            "DisplayName": "1", // 货道编号
            "CabinetName": "A", // 货柜 A B C D
            "Stock": 0, //库存
            "SellStatus": true,// 是否正常售卖状态
            "BarCode": "",// 货道商品条码
            "ColdStatus": true,// 是否制冷
            "HotStatus": false // 是否加热
          },
          "UpdatedAt": 1585171800 // 时间戳
          ...
        ]
      },
      ...
    ]
  }
}
Copyright © YoPoint.com 2019 all right reserved,powered by Gitbook该文件修订时间: 2024-01-04 16:21:22

results matching ""

    No results matching ""