设备列表

简要描述
  • 设备列表接口
请求URL
  • /admin/device/list
请求方式
  • get
参数
参数名 必选 类型 说明
page int 页数
page_size int 个数
product_id int 机型id
返回示例
{
    "code": 200,
    "data": {
        "total": 12,
        "per_page": 15,
        "current_page": 1,
        "data": [
            {
                "id": 3246,
                "product_id": 33,
                "device_name": "3db9c40c8ca9d78d9d0a7aa3d698ec8c",
                "last_time": "",
                "device_secret": "b5cc5c099b0ee5008c0263126f47d2e2",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3245,
                "product_id": 33,
                "device_name": "3fc5ba3192930a9214c579dbf015021a",
                "last_time": "",
                "device_secret": "317bf7af222562c6ed6d2bfe9fc58a90",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3244,
                "product_id": 33,
                "device_name": "a33270147283cc83ccbc2016ca29e3e4",
                "last_time": "",
                "device_secret": "f8f5786bc4ff3cc18e1ead3205cabcb5",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3243,
                "product_id": 33,
                "device_name": "74021f0eb230120625e90c073454ea9c",
                "last_time": "",
                "device_secret": "05f28e4baecedb23079e6fe2409032f3",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3242,
                "product_id": 33,
                "device_name": "1e383ff94676e7c67ced9fe7a77c0f5e",
                "last_time": "",
                "device_secret": "51d7cd18dbdeac3b43c69257a0fa3d3e",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3241,
                "product_id": 33,
                "device_name": "2ffe4917f15d756a08270567e8b1f340",
                "last_time": "",
                "device_secret": "00056aa17b8b65f1bf8feb54d4d41c2b",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3240,
                "product_id": 33,
                "device_name": "e13b77b75b922bd658f413a53e936ee2",
                "last_time": "",
                "device_secret": "a6d30a68d83d9fe474318009815f23da",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3239,
                "product_id": 33,
                "device_name": "062e77b60246f6e5253963b67f3b073b",
                "last_time": "",
                "device_secret": "c5c18a85ac72c7f4632fc1a0f28d5312",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3238,
                "product_id": 33,
                "device_name": "82daea1acd7a3fa0351f2a4aa0ee1a2e",
                "last_time": "",
                "device_secret": "72900ef7def5b4df4c2373e57eec1dcb",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3237,
                "product_id": 33,
                "device_name": "d8a54ca2e02d3d9fecc94232b667e8d2",
                "last_time": "",
                "device_secret": "605912301c6f86a40fceac5a333bb90b",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "测试api"
            },
            {
                "id": 3236,
                "product_id": 2,
                "device_name": "886e8c1e296e4e7c959b62dfdf948dda",
                "last_time": "",
                "device_secret": "bdcb13c8ea784eb1a0743087b030968a",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "Slimming VI"
            },
            {
                "id": 1,
                "product_id": 2,
                "device_name": "886e8c1e296e4e7c959b62dfdf948ddf",
                "last_time": "",
                "device_secret": "bdcb13c8ea784eb1a0743087b030968c",
                "customer_id": 0,
                "device_info": "",
                "create_time": "1970-01-01 08:00:00",
                "product_name": "Slimming VI"
            }
        ]
    },
    "error
}
返回参数说明
参数名 类型 说明
total int 总数
per_page int 每页个数
current_page int 当前页
id int 设备id
device_name string 设备名称
last_time string 最后在线时间
customer_id int 0-未绑定 1-绑定
product_name string 机型名称
device_info string 设备描述
create_time string 添加时间