- 打印机列表
请求域名:
- http://xx.com
请求URL:
GET/route=plugin.more-printer.admin.temp.list.get-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 分页数 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 3,
"uniacid": 15,
"title": "1号打印机",
"user": "jiia@163.com",
"ukey": "gasfds5984",
"printer_sn": "sjn2032131",
"times": 1,
"status": 1,
"plugin_id": 0,
"created_at": "2022-09-29 11:17:55",
"updated_at": "2022-09-29 11:17:55",
"deleted_at": null,
"status_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 |
name | string | 打印机名称 |
status | int | 打印机状态 1 开启 0关闭 |
备注:
- 更多返回错误代码请看首页的错误代码描述