班牌後臺管理
阿新 • • 發佈:2018-05-11
ron spa 信息 bsp search 高中 AD long 進行
1 f返回所有學校班牌信息接口
請求方式: get
http://0.0.0.0:8008/api/admin/v1/CheckBanPaiStatus
2 通過Rucode和學校名稱搜索接口
通過Rucode進行搜索
請求方式get
http://0.0.0.0:8008/api/admin/v1/CheckBanPaiStatus/?SearchFiled=3408076
通過學校名進行搜索
請求方式: get
http://0.0.0.0:8008/api/admin/v1/CheckBanPaiStatus/?SearchFiled=七天網絡
3 查看學校詳情接口
請求方式get
http://0.0.0.0:8008/api/admin/v1/CheckBanPaiStatus/?SearchFiled=3408076
以上三個接口其實就是一個接口,返回格式如下:
班牌的狀態字段 ClassROomStatus 0 表示未登錄 1表示登錄 2 表示離線
NormalStatus 表示該學校所有班牌處於正常狀態的數量
LeaveStatus 表示該學校所有班牌處於離線狀態的數量
Unlongin 表示該學校所有班牌處於未登錄狀態的數量
{ "code": 200, "message": "success", "data": [ { "Rucode": "3408076", "SchoolName": "七天網絡", "NormalStatus": 1, "LeaveStatus": 0, "Unlongin": 19, "ClassRoomMes": [ # 這裏單一學校的班牌信息 { "Class_Room_Adreess": "一樓", "ClassRoomMid": "59e6d09b705deb72706503ae", "Class_Room_Name": "啊大廈大所", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "一樓", "ClassRoomMid": "59e6d09b705deb72706503af", "Class_Room_Name": "1017210661165", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "一樓", "ClassRoomMid": "59e6d09b705deb72706503b0", "Class_Room_Name": "1090855420342", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "一樓", "ClassRoomMid": "59e6d09b705deb72706503b1", "Class_Room_Name": "1085292002763", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "一樓", "ClassRoomMid": "59e6d09b705deb72706503b2", "Class_Room_Name": "1020329264710", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "高中部教學樓", "ClassRoomMid": "5ad87cbc705deb53d881f6ed", "Class_Room_Name": "201", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "高中部教學樓", "ClassRoomMid": "5ad87cbc705deb53d881f6ee", "Class_Room_Name": "202", "ClassROomStatus": 2 }, { "Class_Room_Adreess": "高中部教學樓", "ClassRoomMid": "5ad87cbc705deb53d881f6ef", "Class_Room_Name": "111班", "ClassROomStatus": 0 }, { "Class_Room_Adreess": "高中部教學樓", "ClassRoomMid": "5ad87cbc705deb53d881f6f0", "Class_Room_Name": "112班", "ClassROomStatus": 2 } } ] } ] }
4 控制班牌重啟接口
請求方式: get
請求參數
ClassRoomMID
http://0.0.0.0:8008//api/admin/v1/restart/?ClassRoomMID=5ad87cbc705deb53d881f6ef
返回結果
{ "code": 200, "message": "success", "data": "" }
班牌後臺管理