🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 班牌查询单个设备信息 **简要描述:** * 班牌查询单个设备信息 **请求URL:** * /device/findbymacid **请求方式:** * POST **请求参数:** | 参数名 | 必选 | 类型 | 说明 | | --- | --- | --- | --- | | mac_id| 是 | string | 设备地址 | **返回参数:** | 参数名 | 必选 | 类型 | 说明 | | --- | --- | --- | --- | | school_id| 是 | int | 学校id | | classroom_id| 是| int | 教室id | | name| 是 | string | 设备名称 | | mac_id| 是 | string | 设备地址 | | type| 是 | int| 1班牌 2校牌 | | password| 是 | string | 密码| | welcome| 是 | string | 开机欢迎语 | | card_voice| 是 | string | 刷卡播报声 | | screen_type| 是 | int | 1横屏 2竖屏 | | 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", "classroom_id": "1", "name": "222", "mac_id": "222", "type": "1", "password": "", "welcome": "", "card_voice": "", "screen_type": "1", "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": "" } } } ```