45 lines
664 B
PHP
45 lines
664 B
PHP
<?php
|
||
|
||
namespace app\api\controller;
|
||
|
||
use app\common\controller\Api;
|
||
|
||
/**
|
||
* 首页接口
|
||
*/
|
||
class Index extends Api
|
||
{
|
||
protected $noNeedLogin = ['*'];
|
||
protected $noNeedRight = ['*'];
|
||
|
||
/**
|
||
* 首页
|
||
*
|
||
*/
|
||
public function index()
|
||
{
|
||
$this->success('请求成功');
|
||
}
|
||
|
||
|
||
|
||
|
||
/**
|
||
* @ApiTitle(init接口,小程序初始化参数接口)
|
||
* @ApiSummary(小程序初始化参数接口)
|
||
* @ApiRoute(/api/index/init)
|
||
* @ApiMethod(GET)
|
||
* @ApiReturn({
|
||
"code" => 1,
|
||
"msg" => "获取成功",
|
||
"data" => {}
|
||
*})
|
||
*/
|
||
public function init() {
|
||
|
||
$this->success('',[]);
|
||
}
|
||
|
||
|
||
}
|