题库-试题列表

接口地址:/exam/list

请求方式 get

参数:

  • class_id 设备分类id

返回格式:

{
    "code":1,
    "data":{
        "question_list": [
            {
                "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, 2]
            },
            {
                "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, 2]
            }
        ]
    },
    "msg":"success"
}

Last updated

Was this helpful?