feat: add note module and route fixes
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\note\controller\v1;
|
||||
|
||||
use app\api\common\Response;
|
||||
use app\note\controller\BaseController;
|
||||
use app\note\service\PlanningService;
|
||||
use think\App;
|
||||
|
||||
/**
|
||||
* 笔记模块元信息控制器
|
||||
*/
|
||||
class Meta extends BaseController
|
||||
{
|
||||
/**
|
||||
* @var PlanningService
|
||||
*/
|
||||
protected $planningService;
|
||||
|
||||
public function __construct(App $app)
|
||||
{
|
||||
parent::__construct($app);
|
||||
$this->planningService = new PlanningService();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 note 模块接口规划概览
|
||||
* GET /note/v1/meta/interfaces
|
||||
*/
|
||||
public function interfaces()
|
||||
{
|
||||
return Response::success($this->planningService->getModuleOverview());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user