试卷 curd
<h5>简要描述</h5>
<ul>
<li>试卷 curd</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{BASE_URL}}/api/job.paper/addPaperAndQuestion</code> POST</li>
<li><code>{{BASE_URL}}/api/job.paper/editPaperAndQuestion/id/:id</code> POST</li>
<li><code>{{BASE_URL}}/api/job.paper/del/ids/:ids</code>DELETE</li>
</ul>
<h5>参数</h5>
<h1>添加</h1>
<pre><code>{
"step":"webLivePrepare", # 固定值, 主播助理养成
"name" : "试卷名称",
"background" : "小天和小可是某国产护肤品牌的两位主播xxx",
"score" : "20", # 底下 questionList加起来的总分
"belongs": "1", # 固定值, 1 代表个人, 2 代表公共
"extra": [], # 题干和表格数据
"questionList":[ # 问题列表
#####直播活动策划脚本
{
"type": "1", #单选题
"questionId" :'xxx',
"paperQuestionId" :'xxx',
"question": "标题", #自己定
"option": ["延禧宫禧贵妃私房护肤品大公开","延禧宫新号开播10W观众正在宫里","国潮来袭,10W观众正在围观","xxx"],#出题时输入
"answer": "1" # 逗号分隔
"tag": "1", # 固定值
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"part": 1 #步骤1的题目
"extra": [xxx] # 存json后考试要显示的题目 ,
},
{
"type": "1", #单选题
"questionId" :'xxx',
"paperQuestionId" :'xxx',
"question": "主播的名字", #自己定
"option": [""],#出题时输入
"answer": "小天" # 逗号分隔
"tag": "1", # 固定值
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"part": 1 #步骤1的题目
"extra": [xxx] # 存json后考试要显示的题目 ,
},
{
"type": "2", #单选题
"questionId" :'xxx',
"paperQuestionId" :'xxx',
"question": "注意事项", #自己定
"option": ["A","B","C","D","E"],#出题时输入
"answer": "2,3,4,5" # 逗号分隔
"tag": "1", # 固定值
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"part": 1 #步骤1的题目
"extra": [xxx] # 存json后考试要显示的题目 ,
},
#####直播前宣传策划脚本
{
"type": "1", #单选题
"questionId" :'xxx',
"paperQuestionId" :'xxx',
"question": "标题", #自己定
"option": [],random为1的data里的randomOptions
"answer": "选品,确定主播人选,确定直播方式..." # 逗号分隔 获取默认题目的data里的answer
"tag": "1", # 固定值
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"part": 2 #步骤2的题目
"extra": [xxx] # 存json后考试要显示的题目 ,
}
]
}</code></pre>