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":"webGraphicPromotion", # 固定值, 图文推广
    "name" : "试卷名称", 
    "background" : "恰逢双十一,在2021年11月11日晚上8点开播,薇娅淘宝直播间举行了以“薇娅潮电节”为主题的宠粉大促,直播间成交突破了2.4亿元,为了让本次直播继续扩大影响力,实现直播后二次传播放大直播效果的目的,请你根据本次直播内容,撰写二次传播的图文信息和短视频信息。",
    "score" : "20", # 底下 questionList加起来的总分
    "belongs": "1", # 固定值, 1 代表个人, 2 代表公共
    "extra": [''], # 图表数据  1.先获取飞瓜直播数据列表  然后用liveId获取直播间详情
    "video": 视频链接
    "questionList":[  # 问题列表
        {
            "type": "1", #单选
            "question": "撰写合适的标题",
            "option": '["薇娅,宠粉就差你","双十一惊喜来袭!薇娅潮电节,非你莫属"]',
            "answer": "2", # 逗号分隔 
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":1  #
        },
         {
            "type": "5", #关键词匹配
            "question": "时间",
            "option": '',
            "keywords": "双十一/11月11日,8点/八点", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "keywordScore": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":2  #
        },
         {
            "type": "5", #关键词匹配
            "question": "地点",
            "option": '',
            "keywords": "直播间", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "keywordScore": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":2  #
        },
        ...
        {
            "type": "1", #单选题
            "question": "选择视频",
            "option": '["视频链接1","视频链接2","视频链接3"]',
            "answer": "1", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":3  #
        },
        {
            "type": "1", #单选题
            "question": "选择最合适的短视频发布平台",
            "option": '["抖音","淘宝","快手","B站"]',
            "answer": "2", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":4  #
        },
        {
            "type": "1", #单选题
            "question": "选择图片",
            "option": '["图片链接1","图片链接2","图片链接3"]',
            "answer": "1", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":5  #
        },
        {
            "type": "2", #多选题
            "question": "选择适合的图文发布平台",
            "option": '["小红书","微博","微信朋友圈","淘宝站内"]',
            "answer": "1,2,3,4", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":6  #
        },
    ]
}

页面列表

ITEM_HTML