# 管理登录
**简要描述:**
mac_id换token和school_id
**请求URL:**
* /device/login
**请求方式:**
* POST
| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| mac_id| 是 | string| 设备id|
**返回参数:**
| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| school_id| 是 | int| 学校id |
| token| 是 | string | token |
**返回示例**
```
{
"code": "200",
"msg": "success",
"data": {
"school_id": "1",
"token": "aJSEQ7nqxQNouceEAxS5_aXEDei_biVqbyaAmZ0CgqvoDxcGVHVgePeLewDQN22Ih2VDPK_b5nzB_bxuBpCm_b2ROlCbQA4RkApOV3V53hhZ_af_avRd8CRYW1TejzBBqsATzhZXe73mPyGL_a7mTES92eVn05YqthNusRy_ajLsgVpAFG8QzmWz9EkzSOL6vphkcMIhkoc3YXD38XPSiRYzIYLWPxKmjo_bnHErcgnECmn_bq_bgkBftFbAW2_bEwd32sfPzU1uLX_bRy0LSlMqKPoAqbiKX9MYWqVDAcSyczBxgGk3xwWLjgmFRuim1fVGDmLkfKMUty_boIrbav1SxjJnyGKxGZw3GQxB7W5gaDoI1TWGW7eHsay9bSrEYOQAA_c_c"
}
}
```