|
@@ -231,7 +231,11 @@ class Station extends CatchController
|
|
|
*/
|
|
|
public function getAllList(Request $request)
|
|
|
{
|
|
|
- return CatchResponse::success($this->stationModel->getAllList());
|
|
|
+ $params=$request->param();
|
|
|
+ $start=$params['start']?$params['start']*4000:0;
|
|
|
+ $limit=$params['limit']?:4000;
|
|
|
+ $total=$this->stationModel->count();
|
|
|
+ return CatchResponse::success(['list'=>$this->stationModel->getAllList($start,$limit),'total'=>$total]);
|
|
|
}
|
|
|
public function getAllListForTrans(Request $request) {
|
|
|
$list=$this->stationModel->getAllList();
|