reportModel = $reportModel; } /** * 首页数量数据 * @param Request $request */ public function homePageCountData(Request $request) { // 基站数据 // $station_data = $this->reportModel->getStationCountData() ?: []; $station_data =[]; // 部门数据 // $department_data = $this->reportModel->getDepartmentCountData() ?: []; // 用户数据 $user_data = $this->reportModel->getDeviceUserCountData() ?: []; $data = array_merge($station_data, $user_data); return CatchResponse::success($data); } /** * 基站增长趋势数据 * @param Request $request */ public function stationGrowthTrendData(Request $request) { $data = $this->reportModel->getStationGrowthTrendData() ?: []; return CatchResponse::success($data); } /** * 用户设备增长趋势数据 * @param Request $request */ public function deviceGrowthTrendData(Request $request) { $data = $this->reportModel->getDeviceGrowthTrendData() ?: []; return CatchResponse::success($data); } }