创建题目
简要描述
- 创建题目
请求URL
https://vring.dyhculture.com/forestage/exam/createQuestion
请求方式
- POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
paperId | 是 | int | 考卷id |
from | 是 | int | 1 模板题 2 素材题 3 背景音乐题 4 字幕题 |
point | 是 | int | 分数 |
type | 是 | int | 1 单选 2多选 3判断 |
answer | 是 | int | 正确答案 form 为1 存【TID】 form 为2 存【VIDEOID】form 为3 存【MID】 |
questions | 是 | json | [{'options':['TID1,TID2,TID3,TID4'],'answer'['TID1,TID2,TID3'],'point':'1','from':1,'type':2},{'options':['VIDEOID1,VIDEOID2,VIDEOID3'],'answer':['VIDEOID'],'point':'1','from':2,type':2},{'options':['MID1,MID2,MID3'],'answer':['MID'],'point':'1','from':3,'type':2}] |
返回示例
{
"code": 20000,
"msg": "success",
"time": "2021-09-23 10:19:39",
"data": []
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
paperInfo | array | 考卷详情 |
options | array | 1 模板id(TID)选项数组 2 素材id(VIDELID)选项数组 3 模板背景音乐(MID)选项数组 |
from | int | 1 模板题目 2 模板底下的素材题目 3 模板的背景音乐题目 4字幕题目 |
point | int | 分数 |
answer | array | 正确答案 |
type | int | 1单选 2多选 3判断 |
备注
- 更多返回错误代码请看首页的错误代码描述