## 班牌查询单个设备信息
**简要描述:**
* 班牌查询单个设备信息
**请求URL:**
* /device/findbymacid
**请求方式:**
* POST
**请求参数:**
| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| mac_id| 是 | string | 设备地址 |
**返回参数:**
| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| company_id| 是 | int | 平台id |
| school_id| 是 | int | 学校id |
| classes_id| 是| string | 班级id |
| classes_name| 是 | string | 班级名称 |
| name| 是 | string | 设备名称 |
| mac_id| 是 | string | 设备地址 |
| type| 是 | int| 1班牌 2考勤机 |
| password| 是 | string | 密码|
| welcome| 是 | string | 开机欢迎语 |
| card_voice| 是 | string | 刷卡播报声 |
| mode_type| 是 | int | 模式类别 1.常规模式,2.考试模式,3图片模式|
| start_time| 是 | string | 模式场景开始时间 |
| end_time| 是 | string | 模式场景结束时间 |
| background| 是 | string | 背景图 |
| add_time| 是 | string | 创建时间 |
| timeon_1| 是 | string | 星期一开机时间 |
| timeoff_1| 是 | string | 星期一关机时间 |
|first_screen_settings| 是 | string | 首页布局,xy坐标,wh宽高,如果不需要自定义,可固定返回 |
**返回示例**
```
{
"code": "200",
"msg": "success",
"data": {
"id": "2",
"school_id": "1",
"classes_id": "1",
"name": "222",
"mac_id": "222",
"type": "1",
"password": "",
"welcome": "",
"card_voice": "",
"mode_type": "1",
"start_time": "",
"end_time": "",
"background": "",
"first_screen_settings": "[{\"x\":0,\"y\":0,\"w\":2,\"h\":2,\"i\":6,\"url\":\"static/img/class_sp22.94ab6aa4.png\",\"moved\":false},{\"x\":0,\"y\":2,\"w\":2,\"h\":2,\"i\":7,\"url\":\"static/img/class_tz22.6cda36d3.png\",\"moved\":false},{\"x\":2,\"y\":0,\"w\":2,\"h\":3,\"i\":9,\"url\":\"static/img/class_xw23.c0c4f31e.png\",\"moved\":false},{\"x\":0,\"y\":4,\"w\":2,\"h\":2,\"i\":11,\"url\":\"static/img/class_yx22.ddb50ea8.png\",\"moved\":false},{\"x\":2,\"y\":3,\"w\":2,\"h\":2,\"i\":12,\"url\":\"static/img/class_zr22.b46e040a.png\",\"moved\":false}]",
"status": "1",
"add_time": "2020-12-16 11:15:35",
"classes_name": "10班",
"power": {
"id": "2",//这两个用不到
"device_id": "2",//这两个用不到
"timeon_1": "",
"timeoff_1": "",
"timeon_2": "",
"timeoff_2": "",
"timeon_3": "",
"timeoff_3": "",
"timeon_4": "",
"timeoff_4": "",
"timeon_5": "",
"timeoff_5": "",
"timeon_6": "",
"timeoff_6": "",
"timeon_7": "",
"timeoff_7": ""
}
}
}
```