上播模块试卷curd
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>上播模块试卷curd</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/api/job.paper/addLivePaperAndQuestion</code> 添加</li>
<li><code>/api/job.paper/editLivePaperAndQuestion</code> 编辑
<h5>请求方式</h5></li>
<li>POST
<h5>tag</h5>
<pre><code class="language-php"> /**
* @const 直播常用话术标签中文映射
*/
const TAG_SPEECH_LANG = [
1 => '直播开场',
2 => '商品介绍',
3 => '直播互动',
4 => '直播收尾',
];</code></pre></li>
</ul>
<h5>参数</h5>
<pre><code>编辑的时候加上 questionId 和 paperQuestionId 没有传paperQuestionId 即删除题目
{
"step": "webFansRunLive",
"name": "粉丝用户运营上播",
"background": "我是背景资料",
"questionList": [
{
"type": 51,
"question": "直播开场",
"tag": 1,
"keywords": "粉丝团/粉丝群,关注/加入/福利",
"keywordScore": 2,
"duration": 20,
"part":1
},
{
"type": 58,
"question": "直播互动-问题1",
"tag": 3,
"keywords": "",
"keywordScore": 0,
"duration": 20,
"part":3,
"child":[{
"type": 51,
"question": "新粉:这是哪里制作的呢?",
"tag": 3,
"keywords": "广东,工厂,粉丝团/粉丝群,关注/加入/福利",
"keywordScore": 3,
"duration": 0,
"part":3
},
{
"type": 51,
"question": "新粉:今天特价多少钱呀?",
"tag": 3,
"keywords": "68/六十八,粉丝团/粉丝群,关注/加入/福利",
"keywordScore": 3,
"duration": 0,
"part":3
}]
}
]
}</code></pre>
<h5>type</h5>
<pre><code> /**
* @const 关键词
*/
const TYPE_KEYWORD = 51;
/**
* @const 子问题使用关键词匹配 使用父问题的时长
*/
const TYPE_CHILDREN_FA_DURATION = 58;</code></pre>