添加资源
<pre><code class="language-text">添加资源</code></pre>
<h4>接口状态</h4>
<blockquote>
<p>已完成</p>
</blockquote>
<h4>接口URL</h4>
<blockquote>
<p><a href="http://192.168.2.103:8000/admin/rs_course/courses">http://192.168.2.103:8000/admin/rs_course/courses</a></p>
</blockquote>
<h4>请求方式</h4>
<blockquote>
<p>POST</p>
</blockquote>
<h4>Content-Type</h4>
<blockquote>
<p>json</p>
</blockquote>
<h4>请求Body参数</h4>
<pre><code class="language-javascript">{
'name': '测试1111优翼—21秋八语上课件&教案&导学案(第3单元)',
'classify_id':1,
'library_id':1,
'category_id':'1,7,16,17',
'url1':'https://mp.zhizhuma.com/webappv2/zipDownloadUpgrade/index.htm?resId=34948337&entityId=190456&entityType=14&crId=26947392',
'url2': '优翼/web/21q/01yw/优翼—21秋八语上课件&教案&导学案(第3单元).zip',
'status': 1,
'sort': 1,
'pack': 2,
}</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>测试优翼—21秋八语上课件&教案&导学案(第3单元)</td>
<td>Text</td>
<td>资源名称</td>
</tr>
<tr>
<td>classify_id</td>
<td>1</td>
<td>Text</td>
<td>所属归类ID</td>
</tr>
<tr>
<td>library_id</td>
<td>1</td>
<td>Text</td>
<td>作业课件分类ID</td>
</tr>
<tr>
<td>category_id</td>
<td>1,7,16,17</td>
<td>Text</td>
<td>栏目分类ID</td>
</tr>
<tr>
<td>url1</td>
<td><a href="https://mp.zhizhuma.com/webappv2/zipDownloadUpgrade/index.htm?resId=34948337&entityId=190456&entityType=14&crId=26947392">https://mp.zhizhuma.com/webappv2/zipDownloadUpgrade/index.htm?resId=34948337&entityId=190456&entityType=14&crId=26947392</a></td>
<td>Text</td>
<td>资源地址1</td>
</tr>
<tr>
<td>url2</td>
<td>优翼/web/21q/01yw/优翼—21秋八语上课件&教案&导学案(第3单元).zip</td>
<td>Text</td>
<td>资源地址2</td>
</tr>
<tr>
<td>status</td>
<td>1</td>
<td>Text</td>
<td>状态1审核0未审核</td>
</tr>
<tr>
<td>sort</td>
<td>1</td>
<td>Text</td>
<td>排序</td>
</tr>
<tr>
<td>pack</td>
<td>2</td>
<td>Text</td>
<td>所属分类ID</td>
</tr>
</tbody>
</table>
<h4>预执行脚本</h4>
<pre><code class="language-javascript">暂无预执行脚本</code></pre>
<h4>后执行脚本</h4>
<pre><code class="language-javascript">暂无后执行脚本</code></pre>
<h4>成功响应示例</h4>
<pre><code class="language-javascript">{
"resCode": 0,
"resMsg": "添加成功!",
"data": []
}</code></pre>