试卷 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":"webConsoleSmartLive", # 固定值, 智能直播
"name" : "试卷名称",
"background" : "xxx",
"score" : "20", # 底下 questionList加起来的总分
"belongs": "1", # 固定值, 1 代表个人, 2 代表公共
"extra": [''], #
"video": 视频链接
"questionList":[ # 问题列表
{
"type": "2", #多选题
"question": "欢迎语设置",
"option": '["欢迎语1","欢迎语2","欢迎语3","欢迎语4"]',
"answer": "4,3,2,1", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "xxx" #备注
"tag": "1"
},
{
"type": "2", #多选题
"question": "欢迎语设置",
"option": '["欢迎语5","欢迎语6","欢迎语7","欢迎语8"]',
"answer": "1,2,3,4", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "xxx" #备注
"tag": "2"
},
{
"type": "2", #多选题
"question": "屏蔽词设置",
"option": '["屏蔽词1","屏蔽词2","屏蔽词3","屏蔽词4"]',
"answer": "1,2,3,4", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "xxx" #备注
"tag": "3"
},
{
"type": "2", #多选题
"question": "屏蔽词设置",
"option": '["屏蔽词1","屏蔽词2","屏蔽词3","屏蔽词4"]',
"answer": "1,2,3,4", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "xxx" #备注
"tag": "4"
},
{
"type": "2", #多选题
"question": "快捷短语设置",
"option": '["快捷短语1","快捷短语2","快捷短语3","快捷短语4"]',
"answer": "1,2,3,4", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "xxx" #备注
"tag": "5"
},
]
}</code></pre>