初始化项目:添加后端代码、ThinkPHP框架、前端资源

This commit is contained in:
amb
2026-09-03 12:42:39 +08:00
commit 482bece22e
3726 changed files with 416708 additions and 0 deletions
@@ -0,0 +1,37 @@
<?php
namespace app\api\controller\page;
use app\common\controller\Api;
use think\Db;
use app\common\model\page\Navigation as NavigationModel;
/**
* 自定义导航
*/
class Navigation extends Api
{
// 无需登录的接口,*表示全部
protected $noNeedLogin = ['*'];
protected $noNeedRight = '*';
public function _initialize()
{
parent::_initialize();
//填充默认配置
\app\common\model\fill\Handle::check('page_navigation');
$this->model = new NavigationModel();
}
/**
* 获取页面
* @return void
*/
public function getNavigation(){
$id = input('id');
$data = $this->model->getNavigationData($id);
if(!$data){
$this->error("暂无导航数据");
}
$this->success("获取成功",$data);
}
}