简要描述:

  • 问卷记录数据接口

请求域名:

  • http://test.yunzshop.com

请求URL:

GET: plugin.questionnaire.api.index.indexInfo

###传输参数:

参数名 是否必须 类型 说明
details:details string 默认接口标识
record_id int 记录id
questionnaire_id int 问卷id

###返回参数

参数名 是否必须 类型 说明
id int 问题id
questionnaire_id int 问卷id

###问题选项 answer 答案数组 fraction分数数组 问题答案跟分数下标是一致

参数名 是否必须 类型 说明
answer int 问题答案
fraction int 分数

###返回数据

{
    "result": 1,
    "msg": "",
    "data": {
        "index": "",
        "answer": "",
        "answerScore": "",
        "record": "",
        "details": {
            "record": {
                "id": 10,
                "answers": [
                    {
                        "questionnaire_ids": 1,
                        "id": 18,
                        "answer": {
                            "answer": {
                                "10": "好",
                                "11": "不好"
                            },
                            "fraction": {
                                "10": "100",
                                "11": "0"
                            }
                        }
                    },
                    {
                        "questionnaire_ids": 1,
                        "id": 16,
                        "answer": {
                            "answer": {
                                "4": "满意",
                                "5": "不满意",
                                "6": "一般"
                            },
                            "fraction": {
                                "4": "100",
                                "5": "0",
                                "6": "50"
                            }
                        }
                    },
                    {
                        "questionnaire_ids": null,
                        "id": 17,
                        "answer": {
                            "answer": {
                                "7": "一般"
                            },
                            "fraction": {
                                "7": "50"
                            }
                        }
                    },
                    {
                        "questionnaire_ids": null,
                        "id": 15,
                        "answer": {
                            "answer": {
                                "1": "不满意"
                            },
                            "fraction": {
                                "1": "0"
                            }
                        }
                    }
                ]
            }
        }
    }
}