视频书目录信息
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>视频书详情目录信息列表接口
该部分的展示、新增、修改等逻辑同三段式课和智能诊断处的目录管理</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>book_cate/section_info</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">book_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>视频书id</td>
</tr>
</tbody>
</table>
<p><strong>批量上传(文件上传)目录接口:book_cate/add_batch_cate</strong>
传参:book_id、file</p>
<p><strong>目录管理列表接口:book_cate/catalog_list</strong>
传参:book_id</p>
<p><strong>添加单个目录接口:book_cate/add_catalog</strong>
传参:book_id、name、type(目录级别:1/2/3)、pid(上级的目录id)、order(排序)</p>
<p><strong>修改目录信息接口:book_cate/save_catalog</strong>
传参:id(目录id)、name、order(排序)、status(状态:0=下架,1=上架)</p>
<p><strong>删除目录接口:book_cate/del_catalog</strong>
传参:id(目录id)</p>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok!&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: 1,
&quot;type&quot;: 0,
&quot;name&quot;: &quot;生物学界与生物学&quot;,
&quot;count&quot;: 0, // 试卷数
&quot;topic_num&quot;: 0, // 试题书
&quot;exercise_num&quot;: 0 // 刷题人次
},
{
&quot;id&quot;: 2,
&quot;type&quot;: 1,
&quot;name&quot;: &quot;第一章 细胞&quot;,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
},
{
&quot;id&quot;: 3,
&quot;type&quot;: 1,
&quot;name&quot;: &quot;第二章 遗传和变异&quot;,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0,
&quot;two_list&quot;: [
{
&quot;id&quot;: 6,
&quot;type&quot;: 2,
&quot;name&quot;: &quot;2.1 孟德尔遗传定律以及它的基础&quot;,
&quot;pid&quot;: 3,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0,
&quot;three_list&quot;: [
{
&quot;id&quot;: 15,
&quot;type&quot;: 3,
&quot;name&quot;: &quot;2.1.1 同源重组的原理&quot;,
&quot;pid&quot;: 6,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
}
]
},
{
&quot;id&quot;: 7,
&quot;type&quot;: 2,
&quot;name&quot;: &quot;2.2 染色体学说与性连锁&quot;,
&quot;pid&quot;: 3,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
},
{
&quot;id&quot;: 8,
&quot;type&quot;: 2,
&quot;name&quot;: &quot;2.3 数量性状的遗传&quot;,
&quot;pid&quot;: 3,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0,
&quot;three_list&quot;: [
{
&quot;id&quot;: 13,
&quot;type&quot;: 3,
&quot;name&quot;: &quot;2.3.1 同源重组的原理&quot;,
&quot;pid&quot;: 8,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
},
{
&quot;id&quot;: 14,
&quot;type&quot;: 3,
&quot;name&quot;: &quot;2.3.2 典型连锁分析&quot;,
&quot;pid&quot;: 8,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
}
]
},
{
&quot;id&quot;: 9,
&quot;type&quot;: 2,
&quot;name&quot;: &quot;2.4 基因连锁与交换&quot;,
&quot;pid&quot;: 3,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0,
&quot;three_list&quot;: [
{
&quot;id&quot;: 10,
&quot;type&quot;: 3,
&quot;name&quot;: &quot;2.4.1 同源重组的原理&quot;,
&quot;pid&quot;: 9,
&quot;count&quot;: 3,
&quot;exercise_num&quot;: 0
},
{
&quot;id&quot;: 11,
&quot;type&quot;: 3,
&quot;name&quot;: &quot;2.4.2 典型连锁分析&quot;,
&quot;pid&quot;: 9,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
},
{
&quot;id&quot;: 12,
&quot;type&quot;: 3,
&quot;name&quot;: &quot;2.4.2 典型连锁分析2&quot;,
&quot;pid&quot;: 9,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
}
]
}
]
},
{
&quot;id&quot;: 4,
&quot;type&quot;: 1,
&quot;name&quot;: &quot;第三章 生物演化&quot;,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
},
{
&quot;id&quot;: 5,
&quot;type&quot;: 1,
&quot;name&quot;: &quot;第四章 生物演化&quot;,
&quot;count&quot;: 0,
&quot;exercise_num&quot;: 0
}
]
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>