You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsProject/dsRes/Doc/v1.0/com_dsideal_resource_Base_C...

555 lines
22 KiB

9 months ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>BaseController</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body onload="PR.prettyPrint()">
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">
9 months ago
dsRes
9 months ago
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/YeDaxia/JApiDocs" target="_blank">GitHub</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v1.0<span class="caret"></span></a>
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="book with-summary">
<div class="book-summary">
<div class="search-box form-group">
<input type="text" class="form-control" id="inputSearch" placeholder="搜索接口">
<span class="glyphicon glyphicon-search form-control-feedback" aria-hidden="true"></span>
</div>
<div id="accordion" class="catalog">
<div class="panel">
<div id="heading0" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
aria-expanded="true" data-target="#collapse0" aria-controls="collapse0">
<i class="glyphicon glyphicon-align-justify"></i> BaseController
</div>
<div id="collapse0" class="collapse in " aria-labelledby="heading0">
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#getStageList">
获取学段列表
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#addSubject">
增加科目
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#delSubject">
删除科目
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#updateSubject">
修改科目
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#listSubject">
科目列表
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#getSubject">
获取科目详情
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#addScheme">
增加版本
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#delScheme">
删除版本
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#updateScheme">
修改版本
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#listScheme">
版本列表
</a>
<a class="catalog-item" href="com_dsideal_resource_Base_Controller_BaseController.html#getScheme">
获取版本信息
</a>
</div>
</div>
</div> </div>
<div class="book-body">
<div class="body-inner">
<div class="book-header">
<div class="d-flex justify-content-between">
<a class="header-menu toggle-catalog" href="javascript:void(0)"><i
class="glyphicon glyphicon-align-justify"></i> 目录</a>
</div>
</div>
<div class="page-wrapper">
<div class="page-inner">
<div class="action-list">
<div class="action-item">
<h2 id="getStageList"><a href="#">获取学段列表 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/getStageList</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="addSubject"><a href="#">增加科目 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/addSubject</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>subject_name</td>
<td>string</td>
<td></td>
<td>科目名称</td>
</tr>
<tr>
<td>subject_code</td>
<td>string</td>
<td></td>
<td>科目代码</td>
</tr>
<tr>
<td>stage_id</td>
<td>int</td>
<td></td>
<td>学段ID</td>
</tr>
<tr>
<td>sort_id</td>
<td>int</td>
<td></td>
<td>排序号</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="delSubject"><a href="#">删除科目 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/delSubject</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>subject_id</td>
<td>int</td>
<td></td>
<td>科目ID</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="updateSubject"><a href="#">修改科目 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/updateSubject</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>subject_id</td>
<td>int</td>
<td></td>
<td>科目ID</td>
</tr>
<tr>
<td>subject_name</td>
<td>string</td>
<td></td>
<td>科目名称</td>
</tr>
<tr>
<td>subject_code</td>
<td>string</td>
<td></td>
<td>科目代码</td>
</tr>
<tr>
<td>stage_id</td>
<td>int</td>
<td></td>
<td>学段ID</td>
</tr>
<tr>
<td>sort_id</td>
<td>int</td>
<td></td>
<td>排序号</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="listSubject"><a href="#">科目列表 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/listSubject</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>stage_id</td>
<td>int</td>
<td></td>
<td>学段id</td>
</tr>
<tr>
<td>pageNum</td>
<td>int</td>
<td></td>
<td>页码</td>
</tr>
<tr>
<td>pageSize</td>
<td>int</td>
<td></td>
<td>每页大小</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="getSubject"><a href="#">获取科目详情 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/getSubject</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>subject_id</td>
<td>int</td>
<td></td>
<td>科目ID</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="addScheme"><a href="#">增加版本 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/addScheme</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>scheme_name</td>
<td>string</td>
<td></td>
<td>版本名称</td>
</tr>
<tr>
<td>stage_id</td>
<td>int</td>
<td></td>
<td>学段ID</td>
</tr>
<tr>
<td>subject_id</td>
<td>int</td>
<td></td>
<td>科目ID</td>
</tr>
<tr>
<td>owner_id</td>
<td>string</td>
<td></td>
<td>创建人ID</td>
</tr>
<tr>
<td>type_id</td>
<td>int</td>
<td></td>
<td>1章节目录结构 2知识点结构</td>
</tr>
<tr>
<td>sort_id</td>
<td>int</td>
<td></td>
<td>排序号</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="delScheme"><a href="#">删除版本 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/delScheme</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>scheme_id</td>
<td>int</td>
<td></td>
<td>版本ID</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="updateScheme"><a href="#">修改版本 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/updateScheme</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>scheme_id</td>
<td>int</td>
<td></td>
<td>版本ID</td>
</tr>
<tr>
<td>scheme_name</td>
<td>string</td>
<td></td>
<td>版本名称</td>
</tr>
<tr>
<td>stage_id</td>
<td>int</td>
<td></td>
<td>学段ID</td>
</tr>
<tr>
<td>subject_id</td>
<td>int</td>
<td></td>
<td>科目ID</td>
</tr>
<tr>
<td>type_id</td>
<td>int</td>
<td></td>
<td>1:章节目录结构 2知识点结构</td>
</tr>
<tr>
<td>sort_id</td>
<td>int</td>
<td></td>
<td>排序号</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="listScheme"><a href="#">版本列表 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/listScheme</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>stage_id</td>
<td>int</td>
<td></td>
<td>学段ID</td>
</tr>
<tr>
<td>pageNum</td>
<td>int</td>
<td></td>
<td>页码</td>
</tr>
<tr>
<td>pageSize</td>
<td>int</td>
<td></td>
<td>每页大小</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
<div class="action-item">
<h2 id="getScheme"><a href="#">获取版本信息 </a></h2>
<p><strong>请求URL</strong></p>
<p>
<code>/base/getScheme</code>
<span class="label label-default">GET</span>
<span class="label label-default">POST</span>
</p>
<p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
<table class="table table-bordered">
<tr>
<th>参数名</th>
<th>类型</th>
<th>必须</th>
<th>描述</th>
</tr>
<tr>
<td>scheme_id</td>
<td>int</td>
<td></td>
<td>版本ID</td>
</tr>
</table>
<p><strong>返回结果</strong></p>
<pre class="prettyprint lang-json">{}</pre>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
<script>
var search_source_data = [
{name: 'BaseController.获取学段列表', url: 'com_dsideal_resource_Base_Controller_BaseController.html#getStageList'},
{name: 'BaseController.增加科目', url: 'com_dsideal_resource_Base_Controller_BaseController.html#addSubject'},
{name: 'BaseController.删除科目', url: 'com_dsideal_resource_Base_Controller_BaseController.html#delSubject'},
{name: 'BaseController.修改科目', url: 'com_dsideal_resource_Base_Controller_BaseController.html#updateSubject'},
{name: 'BaseController.科目列表', url: 'com_dsideal_resource_Base_Controller_BaseController.html#listSubject'},
{name: 'BaseController.获取科目详情', url: 'com_dsideal_resource_Base_Controller_BaseController.html#getSubject'},
{name: 'BaseController.增加版本', url: 'com_dsideal_resource_Base_Controller_BaseController.html#addScheme'},
{name: 'BaseController.删除版本', url: 'com_dsideal_resource_Base_Controller_BaseController.html#delScheme'},
{name: 'BaseController.修改版本', url: 'com_dsideal_resource_Base_Controller_BaseController.html#updateScheme'},
{name: 'BaseController.版本列表', url: 'com_dsideal_resource_Base_Controller_BaseController.html#listScheme'},
{name: 'BaseController.获取版本信息', url: 'com_dsideal_resource_Base_Controller_BaseController.html#getScheme'},
];
$('.toggle-catalog').click(function () {
$('.book').toggleClass('with-summary');
});
$('#inputSearch').autocomplete({hint: false}, [
{
source: function (query, callback) {
var result = [];
for(var i = 0; i !== search_source_data.length; i++){
if(search_source_data[i].name.indexOf(query) !== -1){
result.push(search_source_data[i]);
}
}
callback(result);
},
displayKey: 'name',
templates: {
suggestion: function (suggestion) {
return suggestion.name;
}
}
}
]).on('autocomplete:selected', function (event, suggestion, dataset, context) {
self.location = suggestion.url;
});
</script>
</body>
</html>