DYH云

DYH开放接口


导入法律法规知识题库

[TOC]

简要描述
请求URL
  • api/live.paper_question_bank/importV2?type=import
请求方式
  • 文件POST type直接带在后面GET
参数
参数名 必选 类型 说明
file string 导入题库的excel
type string "check":"后台返回数据回来前台展示" ,"import":"强制导入" 默认check
返回示例
  {
    "code": 20000,
    "msg": "success",
    "time": "2022-03-23 17:10:07",
    "data": [
        {
            "name": "“不学礼,无以立”的古训是",
            "options": [
                "孟子",
                "荀子",
                "孔子",
                "庄子"
            ],
            "answer": [
                3
            ],
            "analysis": null,
            "difficulty": 1,
            "type": 1,
            "step": "webBasic",
            "platformId": 527,
            "addTime": "2022-03-23 17:10:08"
        },
        {
            "name": "与他人在正式场合交谈时要严肃认真,还要注意语言的",
            "options": [
                "准确规范",
                "慢条斯理",
                "声音洪亮",
                "思路清晰"
            ],
            "answer": [
                1
            ],
            "analysis": null,
            "difficulty": 2,
            "type": 1,
            "step": "webBasic",
            "platformId": 527,
            "addTime": "2022-03-23 17:10:08"
        },
        {
            "name": "以目的的不同为标准划分的拜访类型有",
            "options": [
                "孟子",
                "荀子",
                "孔子",
                "庄子"
            ],
            "answer": [
                1,
                2,
                3
            ],
            "analysis": null,
            "difficulty": 1,
            "type": 2,
            "step": "webBasic",
            "platformId": 527,
            "addTime": "2022-03-23 17:10:08"
        },
        {
            "name": "与他人在正式场合交谈时要严肃认真,还要注意语言的",
            "options": [
                "准确规范",
                "慢条斯理",
                "声音洪亮",
                "思路清晰"
            ],
            "answer": [
                1,
                4
            ],
            "analysis": null,
            "difficulty": 2,
            "type": 2,
            "step": "webBasic",
            "platformId": 527,
            "addTime": "2022-03-23 17:10:08"
        },
        {
            "name": "与他人交谈完毕就可以立即转身离开",
            "answer": [
                "2"
            ],
            "analysis": null,
            "difficulty": 1,
            "options": [],
            "type": 3,
            "step": "webBasic",
            "platformId": 527,
            "addTime": "2022-03-23 17:10:08"
        },
        {
            "name": "中华人民共和国领土面积是960万平方公里",
            "answer": [
                "1"
            ],
            "analysis": null,
            "difficulty": 2,
            "options": [],
            "type": 3,
            "step": "webBasic",
            "platformId": 527,
            "addTime": "2022-03-23 17:10:08"
        }
    ]

}
返回参数说明
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML