<?php
// +----------------------------------------------------------------------
// | onezan-admin 快速开发的管理平台
// +----------------------------------------------------------------------
// | 官方网址：https://www.onezan.cn
// +----------------------------------------------------------------------
// | onezan团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: 543885307@qq.com
// +----------------------------------------------------------------------
namespace Applications\sample\adminapi\controller\stats;

use app\adminapi\controller\BaseAdminController;
use Applications\sample\modules\stats\service\admin\StatsService;
use think\Request;

/**
 * 示例应用统计
 * Class Stats
 * @package Applications\sample\adminapi\controller\stats
 */
class Stats extends BaseAdminController
{
    /**
     * 获取统计概览
     * @param Request $request
     * @return \think\response\Json
     */
    public function overview(Request $request)
    {
        return json($this->app->make(StatsService::class)->overview($request));
    }
}
