试卷CURD
<h5>简要描述</h5>
<ul>
<li>自由上播试卷curd</li>
</ul>
<h5>请求URL</h5>
<p>-<code>POST</code> <code>{{BASE_URL}}/api/job.paper/addLivePaperAndQuestion</code> <code>添加</code>
-<code>POST</code> <code>{{BASE_URL}}/api/job.paper/editLivePaperAndQuestion</code> <code>编辑</code>
-<code>DELETE</code> <code>{{BASE_URL}}/api/job.paper/del/ids/1,2,3</code> <code>删除</code></p>
<h5>请求参数</h5>
<h6>添加试卷</h6>
<pre><code>{
"step": "freeToLive", #固定值
"name": "自由上播测试",
"background": "我是背景资料", #试卷背景资料
"questionList": [
{
"type": 61, #固定
"question": "直播时长", #题目名称 固定
"tag": 1,
"option" : [ #时长区间分值设置/ 可设置多个时间段
{
"time": 15, #直播时长 秒
"score": 2 #分值
},
{
"time": 30,
"score": 3
},
{
"time": 45,
"score": 4
}
],
"keywords": "",
"keywordScore": 0,
"score": 4, #取 option中分值最高的一个
"pointKeywords": "",
"duration":0,
"enable":1 #是否开启 0关闭 1开启 存在开关的题目只计算已开启的分值
},
{
"type": 65,#固定
"question": "违禁词评分", #固定
"tag": 1,
"option" : {
},
"keywords": "",
"keywordScore": 0,
"score": 5, #扣分上限
"pointKeywords": "",
"duration":0,
"enable":0, #是否开启 0关闭 1开启 存在开关的题目只计算已开启的分值
"buckleScore":1 #扣分分值
},
{
"type": 62, #固定
"question": "话术节奏把控评分", #固定
"tag": 1,
"option" : {
},
"keywords": "",
"keywordScore": 0,
"score": 5, #分值
"pointKeywords": "",
"duration":0,
"enable":1, #是否开启 0关闭 1开启 存在开关的题目只计算已开启的分值
"buckleScore":1
},
{
"type": 51, #固定
"question": "普通关键词设置", #固定
"tag": 1,
"option" : {
},
"keywords": "xxx,zzz",#关键词
"keywordScore": 2, #分值
"score": 0,
"pointKeywords": "",
"duration":0,
"enable":1 #是否开启
},
{
"type": 52, #固定
"question": "重点关键词设置", #固定
"tag": 1,
"option" : {
},
"keywords": "",
"keywordScore": 0,
"score": 2, #分值
"pointKeywords": "qqq,www",#重点关键词
"duration":0,
"enable":1 #是否开启 0关闭 1开启 存在开关的题目只计算已开启的分值
},
{
"type": 64, #固定
"question": "表情识别评分", #固定
"tag": 1,
"option" : {
"interval":1 #判定方式 百分比
},
"answer":"0.4",#占比 0.4 为 40%
"keywords": "",
"keywordScore": 0,
"score": 5, #分值
"pointKeywords": "",
"duration":10, #截图频率 10秒一次
"enable":1 #是否开启 0关闭 1开启 存在开关的题目只计算已开启的分值
},
{
"type": 63, #固定
"question": "图像识别评分", #固定
"tag": 1,
"option" : {
"interval":0, #判定方式 百分比
"number":1 # 次数 1为选中
},
"answer":"3", # 次数 出现3次
"keywords": "",
"images":"xxxx",#需要识别的图片
"keywordScore": 0,
"score": 5, #分值
"pointKeywords": "",
"duration":10, #截图频率 10秒一次
"enable":1, #是否开启 0关闭 1开启 存在开关的题目只计算已开启的分值
"startTime":20,#截图区间 开始时间 (秒)
"endTime":100,#截图区间 结束时间 (秒)
}
]
}</code></pre>
<h6>编辑 参照添加</h6>
<pre><code>{
"paperId": 744,
"platformId": 527,
"step": "freeToLive",
"video": "",
"name": "自由上播测试",
"background": "我是背景资料",
"score": "23.00",
"belongs": 1,
"type": 0,
"formatType": 1,
"language": "",
"extra": [],
"jobId": 0,
"status": 1,
"addTime": "2022-09-02 16:24:24",
"updateTime": "2022-09-02 16:24:26",
"knowledge": "",
"goodsIds": "",
"questionList": [
{
"questionId": 474523,
"question": "直播时长",
"type": 61,
"answer": "",
"enable": 1,
"score": "4.00",
"buckleScore": "0.00",
"keywordScore": "0.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474523,
"option": [
{
"time": "15",
"score": "2"
},
{
"time": "30",
"score": "3"
},
{
"time": "45",
"score": "4"
}
],
"paperQuestionId": 9655,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "",
"tagText": "默认",
"options": [
{
"time": "15",
"score": "2"
},
{
"time": "30",
"score": "3"
},
{
"time": "45",
"score": "4"
}
],
"haveDone": false
},
{
"questionId": 474524,
"question": "违禁词评分",
"type": 65,
"answer": "",
"enable": 1,
"score": "4.00",
"buckleScore": "1.00",
"keywordScore": "0.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474524,
"option": [],
"paperQuestionId": 9656,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "",
"tagText": "默认",
"options": [],
"haveDone": false
},
{
"questionId": 474525,
"question": "话术节奏把控评分",
"type": 62,
"answer": "",
"enable": 1,
"score": "5.00",
"buckleScore": "1.00",
"keywordScore": "0.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474525,
"option": [],
"paperQuestionId": 9657,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "",
"tagText": "默认",
"options": [],
"haveDone": false
},
{
"questionId": 474526,
"question": "普通关键词设置",
"type": 51,
"answer": "",
"enable": 1,
"score": "0.00",
"buckleScore": "0.00",
"keywordScore": "2.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474526,
"option": [],
"paperQuestionId": 9658,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "xxx,zzz",
"tagText": "默认",
"options": [],
"haveDone": false
},
{
"questionId": 474527,
"question": "重点关键词设置",
"type": 52,
"answer": "",
"enable": 1,
"score": "0.00",
"buckleScore": "0.00",
"keywordScore": "2.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474527,
"option": [],
"paperQuestionId": 9659,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "",
"tagText": "默认",
"options": [],
"haveDone": false
},
{
"questionId": 474528,
"question": "表情识别评分",
"type": 64,
"answer": "0.4",
"enable": 1,
"score": "5.00",
"buckleScore": "0.00",
"keywordScore": "0.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474528,
"option": {
"interval": "1"
},
"paperQuestionId": 9660,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "",
"tagText": "默认",
"options": {
"interval": "1"
},
"haveDone": false
},
{
"questionId": 474529,
"question": "图像识别评分",
"type": 63,
"answer": "3",
"enable": 1,
"score": "5.00",
"buckleScore": "0.00",
"keywordScore": "0.00",
"subjectiveScore": "0.00",
"jobQuestionId": 474529,
"option": {
"interval": "0",
"number": "1"
},
"paperQuestionId": 9661,
"goodsId": "0",
"duration": 0,
"part": 0,
"partName": "",
"partBackground": "",
"tag": "1",
"desc": "",
"pid": null,
"extra": null,
"background": "",
"keywords": "",
"tagText": "默认",
"options": {
"interval": "0",
"number": "1"
},
"haveDone": false
}
]
}</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>