查看题库
接口地址:/exam/viewqbank
请求方式 get
参数:
class_ids 设备分类id字符串,用逗号分割 如: 1,2
返回格式:
{
"code":1,
"data":{
"question_bank":[
{
"device_cid": 1,
"title": "设备1",
"qlist": [
{
"id": 1,
"title": "考题1",
"img": "http://xxx.com/xx",
"options": [
{
"num":1,
"txt":"1111",
"img":"http://ssxx"
},
{
"num":2,
"txt":"222",
"img":"http://ssxx2"
},
{
"num":3,
"txt":"222",
"img":"http://ssxx3"
}
],
"answer": [1]
},
{
"id": 2,
"title": "考题2",
"img": "http://xxx.com/xx",
"options": [
{
"num":1,
"txt":"1111",
"img":"http://ssxx"
},
{
"num":2,
"txt":"222",
"img":"http://ssxx2"
},
{
"num":3,
"txt":"222",
"img":"http://ssxx3"
}
],
"answer": [1]
}
]
},
{
"device_cid": 2,
"title": "设备2",
"qlist": [
{
"id": 1,
"title": "考题1",
"img": "http://xxx.com/xx",
"options": [
{
"num":1,
"txt":"1111",
"img":"http://ssxx"
},
{
"num":2,
"txt":"222",
"img":"http://ssxx2"
},
{
"num":3,
"txt":"222",
"img":"http://ssxx3"
}
],
"answer": [1]
},
{
"id": 2,
"title": "考题2",
"img": "http://xxx.com/xx",
"options": [
{
"num":1,
"txt":"1111",
"img":"http://ssxx"
},
{
"num":2,
"txt":"222",
"img":"http://ssxx2"
},
{
"num":3,
"txt":"222",
"img":"http://ssxx3"
}
],
"answer": [1]
}
]
}
]
},
"msg":"success"
}Last updated
Was this helpful?