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":"aliSelection", # 固定值, 阿里选品
    "name" : "试卷名称", 
    "background" : "xxx",
    "score" : "20", # 底下 questionList加起来的总分
    "belongs": "1", # 固定值, 1 代表个人, 2 代表公共
    "video": 视频链接
    "questionList":[  # 问题列表
        {
            "type": "22", #answer不为空的情况下 只要有填写就有分
            "question": "注册手机号",
            "option": '',
            "answer": "1350xxxxxxx", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "" #备注
            "tag": 1 #注册手机号
        },
        {
            "type": "22", #answer不为空的情况下 只要有填写就有分
            "question": "姓名身份证",
            "option": '',
            "answer": "wz,3505xxxxxxx", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "" #备注
            "tag": 2 #姓名身份证实名认证
        },
        {
            "type": "19", #多个答案对一个就行
            "question": "搜索",
            "option": '',
            "answer": "凤凰单纵茶,单纵茶,茶,凤凰", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "" #备注
            "tag": 3 #搜索关键词
        },
        {
            "type": "19", #多个答案对一个就行
            "question": "搜索",
            "option": '',
            "goodsId": '11,22,33', #商品的选项
            "answer": "22", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "" #备注
            "tag": 4 #筛选对的商品
        },
        {
            "type": "1或3", #单选或判断题
            "question": "购买数量并支付",
            "option": '',
            "answer": "10", # 10斤
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "" #备注
            "tag": 5 #购买数量并支付
        },
    ]
}

页面列表

ITEM_HTML