初始化项目:添加后端代码、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,35 @@
<?php
namespace app\api\controller\user;
use app\common\controller\Api;
use think\Db;
/**
* 消息通知
*/
class Message extends Api
{
// 无需登录的接口,*表示全部
protected $noNeedLogin = ['*'];
protected $noNeedRight = '*';
public function _initialize()
{
parent::_initialize();
$this->model = new \app\common\model\user\Message();
}
/**
* 获取消息记录
* @return void
*/
public function getList(){
$limit = input('limit',10);
$page = input('page',1);
$list = $this->model->getList([
'limit'=>$limit,
'page'=>$page
]);
$this->success('获取成功',$list);
}
}