Skip to content

弹题

弹题列表

GET /question_marker

权限

  • 需要认证

请求参数

名称位置类型必选说明
idquerystringfalse视频任务id

响应

json
[
  {
    "id": 1,
    "second": 222,
    "mediaId": 727,
    "questionMarkers": [
      {
        "id": "1",
        "markerId": "1",
        "questionId": "1",
        "seq": "1",
        "type": "single_choice|choice|essay|uncertain_choice|determine",
        "stem": "这是题干",
        "analysis": "这是解析",
        "ansewe": [
          "1"
        ],
        "metas": {
          "choices": [
            "<p>1</p>\r\n"
          ]
        },
        "difficulty": "normal",
        "done": true
      }
    ]
  }
]

题目结果检查

POST /question_result_check

权限

  • 需要认证

请求

json
{
  "questionMarkerId": "1",
  "taskId": "1",
  "answer": [
    "1"
  ]
}

参数说明

名称类型必选约束说明
» questionMarkerIdinteger(int64)falsenone题目id
» taskIdstringfalsenone任务id
» answerintfalsenone答案0,1,2,3表示A,B,C,D, 判断题0错误,1正确

响应

json
{
    "checkStatus": "wrong"
}

参数说明

名称类型必选约束说明
» checkStatusstringfalsenone正确:right,错误:wrong

弹题结果列表&题目解析

GET /question_marker/{id}/result

权限

  • 需要认证

请求参数

名称位置类型必选说明
idquerystringfalse视频任务id

响应

json
{
  "isFinished": true,
  "list": [
    {
      "second": "10",
      "num": 10,
      "rightNum": 5
    }
  ],
  "questionsDetail": [
    {
      "id": "1",
      "second": "10",
      "questionMarkers": [
        {
          "id": "1",
          "markerId": "1",
          "questionId": "1",
          "type": "single_choice|choice|essay|uncertain_choice|determine",
          "stem": "这是题干",
          "answer": [
            "1"
          ],
          "analysis": "这是解析",
          "status": "right|wring|partRight",
          "metas": {
            "choices": [
              "<p>1</p>\r\n"
            ]
          },
          "myAnswer": [
            "1"
          ]
        }
      ]
    }
  ]
}