- 打印机详情
请求域名:
- http://xx.com
请求URL:
GET/route=plugin.printer.admin.temp.info
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
id | 是 | int | 记录id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取详情成功",
"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
}
}
错误时返回:
{
result: 0,
msg: "错误信息",
data: {}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
total | int | 总页数 |
per_page | int | 分页大小 |
返回参数data.data说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 模板id |
title | string | 模板名称 |
print_title | string | 打印头部 |
print_style | string | 打印列格式 |
print_data | array(string) | 打印内容 |
qr_code | string | 打印二维码 |
备注:
- 更多返回错误代码请看首页的错误代码描述