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":"webShortVideoClip", # 固定值, 短视频剪辑
    "name" : "试卷名称", 
    "background" : "背景资料, 图文, 可为空",
    "score" : "20", # 底下 questionList加起来的总分
    "belongs": "1", # 固定值, 1 代表个人, 2 代表公共
    "extra": [], # 题干和表格数据
    "questionList":[  # 问题列表
        {
            "type": "4", #主观题
            "question": "标题", #自己定
            "option": [], #选项
            "answer": "https://xxxxx", # 正确答案 视频链接啥的
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
        }
    ]
}
#编辑

{
    "step":"webReservedReturn", # 固定值, 主播助理养成
    "name" : "试卷名称", 
    "background" : "背景资料, 图文, 可为空",
    "score" : "20", # 底下 questionList加起来的总分
    "belongs": "1", # 固定值, 1 代表个人, 2 代表公共
    "extra": [], # 题干和表格数据
    "questionList":[  # 问题列表
         {"questionId":5, "score":10, "answer":"https://xxxxx", "paperQuestionId":11}//编辑的时候要带上questionId和paperQuestionId 否则是删除题目
    ]
}

页面列表

ITEM_HTML