试卷 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":"aliSelection", # 固定值, 阿里选品
"name" : "试卷名称",
"background" : "xxx",
"score" : "20", # 底下 questionList加起来的总分
"belongs": "1", # 固定值, 1 代表个人, 2 代表公共
"video": 视频链接
"questionList":[ # 问题列表
{
"type": "22", #answer不为空的情况下 只要有填写就有分
"question": "注册手机号",
"option": '',
"answer": "1350xxxxxxx", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "" #备注
"tag": 1 #注册手机号
},
{
"type": "22", #answer不为空的情况下 只要有填写就有分
"question": "姓名身份证",
"option": '',
"answer": "wz,3505xxxxxxx", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "" #备注
"tag": 2 #姓名身份证实名认证
},
{
"type": "19", #多个答案对一个就行
"question": "搜索",
"option": '',
"answer": "凤凰单纵茶,单纵茶,茶,凤凰", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "" #备注
"tag": 3 #搜索关键词
},
{
"type": "19", #多个答案对一个就行
"question": "搜索",
"option": '',
"goodsId": '11,22,33', #商品的选项
"answer": "22", # 逗号分隔
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "" #备注
"tag": 4 #筛选对的商品
},
{
"type": "1或3", #单选或判断题
"question": "购买数量并支付",
"option": '',
"answer": "10", # 10斤
"belongs": 1, # 固定值
"score": 2 # 单题分数,
"extra": "" #备注
"tag": 5 #购买数量并支付
},
]
}</code></pre>