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":"webLivePreheat", # 固定值, 平台管理员考核——直播前预热
    "name" : "试卷名称",
    "background" : "直播预热背景资料:在三八妇女节之际,也积极回馈女性,xxx",
    "knowledge" : "知识点背景:商品详情页就是商品的详细信xxx",
    "score" : "20", # 底下 questionList加起来的总分
    "belongs": "1", # 固定值, 1 代表个人, 2 代表公共
    "extra": [], #
    "video": 视频链接
    "questionList":[  # 问题列表
        {
            "type": "19", #选择题 多个答案对一个就行
            "question": "海报背景图",
            "option": '["图片地址1","图片地址2","图片地址3","图片地址4"]',
            "answer": "1", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "tag":1  # 海报背景图
        },
        {
            "type": "19", #选择题 多个答案对一个就行
            "question": "产品图片",
            "option": '["图片地址1","图片地址2","图片地址3","图片地址4"]',
            "answer": "1", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "tag":2  # 产品图片
            "extra": #存图片位置大小参数
        },
        {
            "type": "19", #选择题 多个答案对一个就行
            "question": "主播图片",
            "option": '["图片地址1","图片地址2","图片地址3","图片地址4"]',
            "answer": "1", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "tag":3  # 主播图片
            "extra": #存图片位置大小参数
        },
        {
            "type": "3", #判断题
            "question": "是否添加二维码",
            "option": '["是","否"]',
            "answer": "1", # 固定
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "tag":4  # 主播图片
            "extra": #存图片位置大小参数
        },
        {
            "type": "5", #填空题
            "question": "产品卖点",
            "option": '',
            "keywords": "a,b/c", # 关键词答案
            "belongs": 1, # 固定值
            "keywordScore": 2 # 关键词分数,
            "tag":5  # 填空
        },
        {
            "type": "5", #填空题
            "question": "预告优惠内容",
            "option": '',
            "keywords": "a,b/c", # 关键词答案
            "belongs": 1, # 固定值
            "keywordScore": 2 # 关键词分数,
            "tag":6  # 填空
        },
        {
            "type": "5", #填空题
            "question": "直播时间",
            "option": '',
            "keywords": "a,b/c", # 关键词答案
            "belongs": 1, # 固定值
            "keywordScore": 2 # 关键词分数,
            "tag":7  # 填空
        },
        {
            "type": "1", #选择题
            "question": "短视频选择题",
            "option": '["短视频地址1","短视频地址1","短视频地址1","短视频地址1"]',
            "answer": "1", # 逗号分隔
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "tag":8  # 短视频选择题
        },
    ]
}

页面列表

ITEM_HTML