• 打印机列表

请求域名:

  • http://xx.com

请求URL:

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

参数:

参数名 是否必须 类型 说明
page int 分页数

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取列表成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 15,
                "title": "1",
                "print_title": "2",
                "print_style": "3",
                "print_data": 4,
                "qr_code": "5",
                "owner": 92,
                "owner_id": 1,
                "created_at": null,
                "updated_at": null,
                "deleted_at": null,
                "is_enlarge": "1",
                "print_style_enlarge": "",
                "line_feed": 0
            }
        ],
        "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 模板名称

备注:

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