• 打印机列表

请求域名:

  • http://xx.com

请求URL:

GET/route=plugin.printer.admin.list.get-list

参数:

参数名 是否必须 类型 说明
page int 分页数
kwd string 关键字

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 15,
                "title": "gege",
                "user": "eqw",
                "ukey": "rq",
                "printer_sn": "312312",
                "times": 1,
                "owner": 92,
                "owner_id": 1,
                "status": 1,
                "created_at": "1970-01-01 08:02:03",
                "updated_at": "1970-01-01 08:05:12",
                "deleted_at": null,
                "status_obj": {
                    "style": "btn btn-info",
                    "name": "开启"
                }
            }
        ],
        "first_page_url": "http:\/\/119.91.205.224\/admin\/shop?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http:\/\/119.91.205.224\/admin\/shop?page=1",
        "next_page_url": null,
        "path": "http:\/\/119.91.205.224\/admin\/shop",
        "per_page": 15,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

错误时返回:

{
	result: 0,
	msg: "错误信息",
	data: {}
}

返回参数说明:

参数名 类型 说明
total int 总页数
per_page int 分页大小

返回参数data.data说明:

参数名 类型 说明
id int 打印机id
title string 打印机名称
status int 打印机状态 1 开启 0关闭

备注:

  • 更多返回错误代码请看首页的错误代码描述