资源
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{host}}/api/safe.device/resView</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">{{token}}</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 1,
"msg": "success",
"data": {
"positionData": [
{
"id": 22,
"pid": 0,
"title": "四年级",
"children": [
{
"id": 23,
"pid": 22,
"title": "四年级1班"
},
{
"id": 24,
"pid": 22,
"title": "四年级2班"
},
{
"id": 25,
"pid": 22,
"title": "四年级3班"
},
{
"id": 26,
"pid": 22,
"title": "四年级4班"
},
{
"id": 27,
"pid": 22,
"title": "四年级5班"
}
]
},
{
"id": 28,
"pid": 0,
"title": "五年级",
"children": [
{
"id": 30,
"pid": 28,
"title": "五年级2班"
},
{
"id": 29,
"pid": 28,
"title": "五年级1班"
},
{
"id": 31,
"pid": 28,
"title": "五年级3班"
},
{
"id": 32,
"pid": 28,
"title": "五年级4班"
},
{
"id": 33,
"pid": 28,
"title": "五年级5班"
}
]
},
{
"id": 34,
"pid": 0,
"title": "六年级",
"children": [
{
"id": 35,
"pid": 34,
"title": "六年级1班"
},
{
"id": 36,
"pid": 34,
"title": "六年级2班"
},
{
"id": 37,
"pid": 34,
"title": "六年级3班"
},
{
"id": 38,
"pid": 34,
"title": "六年级4班"
},
{
"id": 39,
"pid": 34,
"title": "六年级5班"
}
]
},
{
"id": 2,
"pid": 0,
"title": "楼梯道二"
},
{
"id": 3,
"pid": 0,
"title": "校门口"
},
{
"id": 4,
"pid": 0,
"title": "一年级",
"children": [
{
"id": 5,
"pid": 4,
"title": "一年级1班"
},
{
"id": 6,
"pid": 4,
"title": "一年级2班"
},
{
"id": 7,
"pid": 4,
"title": "一年级3班"
},
{
"id": 8,
"pid": 4,
"title": "一年级4班"
},
{
"id": 9,
"pid": 4,
"title": "一年级5班"
}
]
},
{
"id": 10,
"pid": 0,
"title": "二年级",
"children": [
{
"id": 11,
"pid": 10,
"title": "二年级1班"
},
{
"id": 12,
"pid": 10,
"title": "二年级2班"
},
{
"id": 13,
"pid": 10,
"title": "二年级3班"
},
{
"id": 14,
"pid": 10,
"title": "二年级4班"
},
{
"id": 15,
"pid": 10,
"title": "二年级5班"
}
]
},
{
"id": 1,
"pid": 0,
"title": "楼梯道一"
},
{
"id": 16,
"pid": 0,
"title": "三年级",
"children": [
{
"id": 21,
"pid": 16,
"title": "三年级5班"
},
{
"id": 20,
"pid": 16,
"title": "三年级4班"
},
{
"id": 17,
"pid": 16,
"title": "三年级1班"
},
{
"id": 18,
"pid": 16,
"title": "三年级2班"
},
{
"id": 19,
"pid": 16,
"title": "三年级3班"
}
]
}
],
"deviceType": [
{
"id": 1,
"value": "电子班牌"
},
{
"id": 2,
"value": "显示屏"
},
{
"id": 3,
"value": "摄像头"
},
{
"id": 4,
"value": "广播喇叭"
}
],
"device": [
{
"id": 1,
"device_code": "asdasdg",
"device_name": "一年级三班班牌",
"device_type": 1,
"location": 1,
"grade_id": 1,
"point_type": 0,
"class_id": 3,
"school_class_id": 3,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "",
"device_type_txt": "电子班牌"
},
{
"id": 2,
"device_code": "wegwegew",
"device_name": "一年级四班班牌",
"device_type": 1,
"location": 2,
"grade_id": 1,
"point_type": 0,
"class_id": 4,
"school_class_id": 4,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "楼梯道",
"point_type_txt": "",
"device_type_txt": "电子班牌"
},
{
"id": 3,
"device_code": "wegwegew",
"device_name": "二年级一班班牌",
"device_type": 1,
"location": 1,
"grade_id": 2,
"point_type": 0,
"class_id": 1,
"school_class_id": 1,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "",
"device_type_txt": "电子班牌"
},
{
"id": 4,
"device_code": "wegweg",
"device_name": "二年级二班班牌",
"device_type": 1,
"location": 1,
"grade_id": 2,
"point_type": 0,
"class_id": 2,
"school_class_id": 7,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "",
"device_type_txt": "电子班牌"
},
{
"id": 5,
"device_code": "wegwe",
"device_name": "三年级一班班牌",
"device_type": 1,
"location": 1,
"grade_id": 3,
"point_type": 0,
"class_id": 1,
"school_class_id": 10,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "",
"device_type_txt": "电子班牌"
},
{
"id": 6,
"device_code": "cvnvcnrft",
"device_name": "一楼楼道屏幕",
"device_type": 2,
"location": 0,
"grade_id": 0,
"point_type": 0,
"class_id": 0,
"school_class_id": 0,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "",
"point_type_txt": "",
"device_type_txt": "显示屏"
},
{
"id": 7,
"device_code": "reyrey",
"device_name": "二楼楼道屏幕",
"device_type": 2,
"location": 0,
"grade_id": 0,
"point_type": 0,
"class_id": 0,
"school_class_id": 0,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "",
"point_type_txt": "",
"device_type_txt": "显示屏"
},
{
"id": 8,
"device_code": "yukyuyuk",
"device_name": "校门口屏幕",
"device_type": 2,
"location": 0,
"grade_id": 0,
"point_type": 0,
"class_id": 0,
"school_class_id": 0,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "",
"point_type_txt": "",
"device_type_txt": "显示屏"
},
{
"id": 9,
"device_code": "dgerherh",
"device_name": "楼道口摄像头",
"device_type": 3,
"location": 1,
"grade_id": 0,
"point_type": 0,
"class_id": 0,
"school_class_id": 0,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 3,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "",
"device_type_txt": "摄像头"
},
{
"id": 10,
"device_code": "wegwegwgh",
"device_name": "操作广播",
"device_type": 4,
"location": 2,
"grade_id": 0,
"point_type": 2,
"class_id": 0,
"school_class_id": 0,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "楼梯道",
"point_type_txt": "室外",
"device_type_txt": "广播喇叭"
},
{
"id": 11,
"device_code": "asdasdgwef",
"device_name": "一年级三班广播",
"device_type": 4,
"location": 1,
"grade_id": 1,
"point_type": 1,
"class_id": 3,
"school_class_id": 3,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "室内",
"device_type_txt": "广播喇叭"
},
{
"id": 12,
"device_code": "wegwegewtt",
"device_name": "一年级四班广播",
"device_type": 4,
"location": 2,
"grade_id": 1,
"point_type": 1,
"class_id": 4,
"school_class_id": 4,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "楼梯道",
"point_type_txt": "室内",
"device_type_txt": "广播喇叭"
},
{
"id": 13,
"device_code": "wegwegewkl",
"device_name": "二年级一班广播",
"device_type": 4,
"location": 1,
"grade_id": 2,
"point_type": 1,
"class_id": 1,
"school_class_id": 1,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "室内",
"device_type_txt": "广播喇叭"
},
{
"id": 14,
"device_code": "wegwegert",
"device_name": "二年级二班广播",
"device_type": 4,
"location": 1,
"grade_id": 2,
"point_type": 1,
"class_id": 2,
"school_class_id": 7,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "室内",
"device_type_txt": "广播喇叭"
},
{
"id": 15,
"device_code": "wegwelse",
"device_name": "三年级一班广播",
"device_type": 4,
"location": 1,
"grade_id": 3,
"point_type": 1,
"class_id": 1,
"school_class_id": 10,
"ip_address": "",
"relevancy_id": 0,
"duty_position_id": 0,
"create_time": "2023-04-04 16:46:18",
"location_txt": "班级门口",
"point_type_txt": "室内",
"device_type_txt": "广播喇叭"
}
]
},
"token": ""
}
</code></pre>