DYH云

DYH开放接口


试卷 curd

简要描述
  • 试卷 curd
请求URL
  • {{BASE_URL}}/api/job.paper/addPaperAndQuestion POST
  • {{BASE_URL}}/api/job.paper/editPaperAndQuestion/id/:id POST
  • {{BASE_URL}}/api/job.paper/del/ids/:idsDELETE
参数

添加

{
    "step":"webConsoleSmartLive", # 固定值, 智能直播
    "name" : "试卷名称", 
    "background" : "xxx",
    "score" : "20", # 底下 questionList加起来的总分
    "belongs": "1", # 固定值, 1 代表个人, 2 代表公共
    "extra": [''], #
    "video": 视频链接
    "questionList":[  # 问题列表
        {
            "type": "2", #多选题
            "question": "欢迎语设置",
            "option": '["欢迎语1","欢迎语2","欢迎语3","欢迎语4"]',
            "answer": "4,3,2,1", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "tag": "1"
        },
        {
            "type": "2", #多选题
            "question": "欢迎语设置",
            "option": '["欢迎语5","欢迎语6","欢迎语7","欢迎语8"]',
            "answer": "1,2,3,4", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "tag": "2"
        },
        {
            "type": "2", #多选题
            "question": "屏蔽词设置",
            "option": '["屏蔽词1","屏蔽词2","屏蔽词3","屏蔽词4"]',
            "answer": "1,2,3,4", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "tag": "3"
        },
        {
            "type": "2", #多选题
            "question": "屏蔽词设置",
            "option": '["屏蔽词1","屏蔽词2","屏蔽词3","屏蔽词4"]',
            "answer": "1,2,3,4", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "tag": "4"
        },
        {
            "type": "2", #多选题
            "question": "快捷短语设置",
            "option": '["快捷短语1","快捷短语2","快捷短语3","快捷短语4"]',
            "answer": "1,2,3,4", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "tag": "5"
        },
    ]
}

页面列表

ITEM_HTML