test_lgq/niucloud/app/adminapi/controller/stat/Stat.php

36 lines
1023 B
PHP
Raw Normal View History

2024-01-24 17:36:08 +08:00
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\adminapi\controller\stat;
use app\service\admin\stat\StatService;
use core\base\BaseAdminController;
use think\Response;
/**
* 统计数据
* Class Stat
* @package app\adminapi\controller\stat
*/
class Stat extends BaseAdminController
{
/**
* 首页数据
* @return Response
*/
public function index()
{
$data = (new StatService())->getIndexData();
return success($data);
}
}