完善版本
This commit is contained in:
@@ -89,4 +89,19 @@ class StatisticsController extends BaseController
|
||||
|
||||
return response()->json($this->data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取个人中心统计数据
|
||||
*/
|
||||
public function dashboard(Request $request)
|
||||
{
|
||||
try {
|
||||
$this->data['data'] = $this->statisticsService->getDashboardStats($request);
|
||||
} catch (\Throwable $th) {
|
||||
$this->data['code'] = 0;
|
||||
$this->data['message'] = $th->getMessage();
|
||||
}
|
||||
|
||||
return response()->json($this->data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user