作者 开飞机的舒克

定时任务接口

... ... @@ -6,6 +6,10 @@ use app\api\model\Study;
use app\common\controller\Api;
use app\common\controller\Resource;
/**
* 定时任务
* @ApiWeigh (93)
*/
class Crontab extends Api
{
// 无需登录的接口,*表示全部
... ...
... ... @@ -252,6 +252,12 @@
</span>
</a>
</div>
<a href="#定时任务" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">定时任务 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="定时任务">
<a href="javascript:;" data-id="13" class="list-group-item">定时任务 <span class="tag">
</span>
</a>
</div>
<a href="#公共接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">公共接口 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="公共接口">
<a href="javascript:;" data-id="11" class="list-group-item">加载初始化 <span class="tag">
... ... @@ -262,12 +268,6 @@
</span>
</a>
</div>
<a href="#Crontab" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">Crontab <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="Crontab">
<a href="javascript:;" data-id="13" class="list-group-item">定时任务 <span class="tag">
</span>
</a>
</div>
<a href="#示例接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">示例接口 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="示例接口">
<a href="javascript:;" data-id="14" class="list-group-item">测试名称 <span class="tag">
... ... @@ -3531,31 +3531,31 @@
</div>
</div>
</div>
<h2>公共接口</h2>
<h2>定时任务</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-11">
<div class="panel-heading" id="heading-13">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 加载初始化 <span class="text-muted">/api/common/init</span></a>
<a data-toggle="collapse" data-parent="#accordion13" href="#collapseOne13"> 定时任务 <span class="text-muted">/api/crontab/index</span></a>
</h4>
</div>
<div id="collapseOne11" class="panel-collapse collapse">
<div id="collapseOne13" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab11">
<li class="active"><a href="#info11" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox11" data-toggle="tab">在线测试</a></li>
<li><a href="#sample11" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab13">
<li class="active"><a href="#info13" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox13" data-toggle="tab">在线测试</a></li>
<li><a href="#sample13" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info11">
<div class="tab-pane active" id="info13">
<div class="well">
加载初始化 </div>
定时任务 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>权限</strong></div>
<div class="panel-body">
... ... @@ -3582,36 +3582,7 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>version</td>
<td>string</td>
<td></td>
<td>版本号</td>
</tr>
<tr>
<td>lng</td>
<td>string</td>
<td></td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>string</td>
<td></td>
<td>纬度</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
... ... @@ -3621,7 +3592,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox11">
<div class="tab-pane" id="sandbox13">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -3631,22 +3602,13 @@
</div>
</div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/init" method="get" name="form11" id="form11">
<div class="form-group">
<label class="control-label" for="version">version</label>
<input type="string" class="form-control input-sm" id="version" required placeholder="版本号" name="version">
</div>
<div class="form-group">
<label class="control-label" for="lng">lng</label>
<input type="string" class="form-control input-sm" id="lng" required placeholder="经度" name="lng">
</div>
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/crontab/index" method="get" name="form13" id="form13">
<div class="form-group">
<label class="control-label" for="lat">lat</label>
<input type="string" class="form-control input-sm" id="lat" required placeholder="纬度" name="lat">
</div>
<div class="form-group form-group-submit">
<button type="submit" class="btn btn-success send" rel="11">提交</button>
<button type="reset" class="btn btn-info" rel="11">重置</button>
<button type="submit" class="btn btn-success send" rel="13">提交</button>
<button type="reset" class="btn btn-info" rel="13">重置</button>
</div>
</form>
</div>
... ... @@ -3656,8 +3618,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers11"></pre>
<pre id="response11"></pre>
<pre id="response_headers13"></pre>
<pre id="response13"></pre>
</div>
</div>
</div>
... ... @@ -3672,10 +3634,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample11">
<div class="tab-pane" id="sample13">
<div class="row">
<div class="col-md-12">
<pre id="sample_response11"></pre>
<pre id="sample_response13"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -3684,29 +3646,31 @@
</div>
</div>
</div>
<h2>公共接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-12">
<div class="panel-heading" id="heading-11">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 上传文件 <span class="text-muted">/api/common/upload</span></a>
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 加载初始化 <span class="text-muted">/api/common/init</span></a>
</h4>
</div>
<div id="collapseOne12" class="panel-collapse collapse">
<div id="collapseOne11" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab12">
<li class="active"><a href="#info12" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox12" data-toggle="tab">在线测试</a></li>
<li><a href="#sample12" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab11">
<li class="active"><a href="#info11" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox11" data-toggle="tab">在线测试</a></li>
<li><a href="#sample11" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info12">
<div class="tab-pane active" id="info11">
<div class="well">
上传文件 </div>
加载初始化 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>权限</strong></div>
<div class="panel-body">
... ... @@ -3714,7 +3678,7 @@
<tbody>
<tr>
<td>登录</td>
<td></td>
<td></td>
</tr>
<tr>
<td>鉴权</td>
... ... @@ -3744,10 +3708,22 @@
</thead>
<tbody>
<tr>
<td>file</td>
<td>File</td>
<td>version</td>
<td>string</td>
<td></td>
<td>文件流</td>
<td>版本号</td>
</tr>
<tr>
<td>lng</td>
<td>string</td>
<td></td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>string</td>
<td></td>
<td>纬度</td>
</tr>
</tbody>
</table>
... ... @@ -3760,7 +3736,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox12">
<div class="tab-pane" id="sandbox11">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -3770,14 +3746,22 @@
</div>
</div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/upload" method="POST" name="form12" id="form12">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/init" method="get" name="form11" id="form11">
<div class="form-group">
<label class="control-label" for="file">file</label>
<input type="File" class="form-control input-sm" id="file" required placeholder="文件流" name="file">
<label class="control-label" for="version">version</label>
<input type="string" class="form-control input-sm" id="version" required placeholder="版本号" name="version">
</div>
<div class="form-group">
<label class="control-label" for="lng">lng</label>
<input type="string" class="form-control input-sm" id="lng" required placeholder="经度" name="lng">
</div>
<div class="form-group">
<label class="control-label" for="lat">lat</label>
<input type="string" class="form-control input-sm" id="lat" required placeholder="纬度" name="lat">
</div>
<div class="form-group form-group-submit">
<button type="submit" class="btn btn-success send" rel="12">提交</button>
<button type="reset" class="btn btn-info" rel="12">重置</button>
<button type="submit" class="btn btn-success send" rel="11">提交</button>
<button type="reset" class="btn btn-info" rel="11">重置</button>
</div>
</form>
</div>
... ... @@ -3787,8 +3771,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers12"></pre>
<pre id="response12"></pre>
<pre id="response_headers11"></pre>
<pre id="response11"></pre>
</div>
</div>
</div>
... ... @@ -3803,10 +3787,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample12">
<div class="tab-pane" id="sample11">
<div class="row">
<div class="col-md-12">
<pre id="sample_response12"></pre>
<pre id="sample_response11"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -3815,31 +3799,29 @@
</div>
</div>
</div>
<h2>Crontab</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-13">
<div class="panel-heading" id="heading-12">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion13" href="#collapseOne13"> 定时任务 <span class="text-muted">/api/crontab/index</span></a>
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 上传文件 <span class="text-muted">/api/common/upload</span></a>
</h4>
</div>
<div id="collapseOne13" class="panel-collapse collapse">
<div id="collapseOne12" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab13">
<li class="active"><a href="#info13" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox13" data-toggle="tab">在线测试</a></li>
<li><a href="#sample13" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab12">
<li class="active"><a href="#info12" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox12" data-toggle="tab">在线测试</a></li>
<li><a href="#sample12" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info13">
<div class="tab-pane active" id="info12">
<div class="well">
定时任务 </div>
上传文件 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>权限</strong></div>
<div class="panel-body">
... ... @@ -3847,7 +3829,7 @@
<tbody>
<tr>
<td>登录</td>
<td></td>
<td></td>
</tr>
<tr>
<td>鉴权</td>
... ... @@ -3866,7 +3848,24 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>file</td>
<td>File</td>
<td></td>
<td>文件流</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
... ... @@ -3876,7 +3875,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox13">
<div class="tab-pane" id="sandbox12">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -3886,13 +3885,14 @@
</div>
</div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/crontab/index" method="get" name="form13" id="form13">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/upload" method="POST" name="form12" id="form12">
<div class="form-group">
<label class="control-label" for="file">file</label>
<input type="File" class="form-control input-sm" id="file" required placeholder="文件流" name="file">
</div>
<div class="form-group form-group-submit">
<button type="submit" class="btn btn-success send" rel="13">提交</button>
<button type="reset" class="btn btn-info" rel="13">重置</button>
<button type="submit" class="btn btn-success send" rel="12">提交</button>
<button type="reset" class="btn btn-info" rel="12">重置</button>
</div>
</form>
</div>
... ... @@ -3902,8 +3902,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers13"></pre>
<pre id="response13"></pre>
<pre id="response_headers12"></pre>
<pre id="response12"></pre>
</div>
</div>
</div>
... ... @@ -3918,10 +3918,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample13">
<div class="tab-pane" id="sample12">
<div class="row">
<div class="col-md-12">
<pre id="sample_response13"></pre>
<pre id="sample_response12"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -5303,7 +5303,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-17 19:06:35 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-17 19:09:28 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...