DYH云

DYH开放接口


获取题目详情

简要描述
  • 获取题目详情
请求URL
  • {{BASE_URL}}/api/job.paper/getInfo
请求方式
  • POST
参数
参数名 必选 类型 说明
paperId int 考卷id
hiddenAnswer int 0 不隐藏答案 1 隐藏答案
返回示例
 {
  "code": 20000,
  "msg": "success",
  "time": "2021-09-29 11:22:09",
  "data": {
    "jobPaperId": 67,
    "platformId": 527,
    "step": "webGraphicPromotion",
    "video": "",
    "name": "11111111",
    "background": "11111111",
    "score": "32.00",
    "belongs": 1,
    "extra": {xxx},
    "status": 1,
    "addTime": "2021-09-29 11:22:07",
    "updateTime": "2021-09-29 11:22:07",
    "questionList":[
    {
            "type": "1", #单选
            "question": "撰写合适的标题",
            "option": '["薇娅,宠粉就差你","双十一惊喜来袭!薇娅潮电节,非你莫属"]',
            "answer": "2", # 逗号分隔 
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":1  #
        },
         {
            "type": "5", #关键词匹配
            "question": "时间",
            "option": '',
            "answer": "双十一/11月11日,8点/八点", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 2 # 单题分数,
            "extra": "xxx" #备注
            "part":2  #
        },
         {
            "type": "5", #关键词匹配
            "question": "地点",
            "option": '',
            "answer": "直播间", # 逗号分隔
            "tag": "", # 标签
            "belongs": 1, # 固定值
            "score": 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  #
        },
    ]
}
返回参数说明
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML