|
|
@@ -17,6 +17,10 @@ public function index()
|
|
|
$list = SportModel::where("game_time", ">=", $start)
|
|
|
->where("game_time", "<", $end)
|
|
|
->get();
|
|
|
- return $this->success($list);
|
|
|
+ $count = SportModel::where("game_time", ">=", $start)
|
|
|
+ ->where("game_time", "<", $end)->count();
|
|
|
+ $total = SportModel::count();
|
|
|
+
|
|
|
+ return $this->success(['list'=>$list, 'count'=>$count, 'total'=>$total]);
|
|
|
}
|
|
|
}
|