获取考题

接口地址:/exam/paper

请求方式 get

参数:

  • class_ids 设备分类id字符串,用逗号分割 如: 1,2

返回格式:

{
    "code":1,
    "data":{
        "paper_id": 1,
        "exam_paper":[
            {
                "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"
                            }
                        ]
                    },
                    {
                        "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"
                            }
                        ]
                    }
                ]
            },
            {
                "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"
                            }
                        ]
                    },
                    {
                        "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"
                            }
                        ]
                    }
                ]
            }
        ]

    },
    "msg":"success"
}

Last updated

Was this helpful?