题目分类 curd
<h5>简要描述</h5>
<ul>
<li>题目分类 curd</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{BASE_URL}}/api/live.paper_question_category/index</code> GET filter:{'step':'xxx','type':'category','name':'xxx','belongs':2(公共)}</li>
<li><code>{{BASE_URL}}/api/live.paper_question_category/add</code> POST</li>
<li><code>{{BASE_URL}}/api/live.paper_question_category/edit/id/:id</code> POST</li>
<li><code>{{BASE_URL}}/api/live.paper_question_category/del/ids/:ids</code>DELETE 1,2,3 返回count 删除数量</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>分类的类型 ''category''普通分类 ''question_type''题目类型的分类,''work_type''工种类型的分类,''occupation_type''职业功能类别', 'level'等级分类</td>
</tr>
</tbody>
</table>
<pre><code> {
"code": 20000,
"msg": "success",
"time": "2022-03-24 10:08:32",
"data": {
"count": 5,
"list": [
{
"categoryId": 30,
"name": "中国历史",
"pid": 0,
"platformId": 527,
"sort": 0,
"addTime": "2022-03-24 10:03:57",
"updateTime": "1970-01-01 00:00:00",
"status": 1
},
{
"categoryId": 29,
"name": "历史题",
"pid": 0,
"platformId": 527,
"sort": 0,
"addTime": "2022-03-24 10:03:57",
"updateTime": "1970-01-01 00:00:00",
"status": 1
},
{
"categoryId": 28,
"name": "沟通礼仪",
"pid": 0,
"platformId": 527,
"sort": 0,
"addTime": "2022-03-24 10:03:57",
"updateTime": "1970-01-01 00:00:00",
"status": 1
},
{
"categoryId": 27,
"name": "礼仪题",
"pid": 0,
"platformId": 527,
"sort": 0,
"addTime": "2022-03-24 10:03:57",
"updateTime": "1970-01-01 00:00:00",
"status": 1
},
{
"categoryId": 26,
"name": " ",
"pid": 0,
"platformId": 527,
"sort": 0,
"addTime": "2022-03-24 10:03:57",
"updateTime": "1970-01-01 00:00:00",
"status": 1
}
]
}
}</code></pre>