input('page', 1); $limit = request()->input('limit', 10); $params = [ 'page' => $page, 'limit' => $limit // 'status'=>3 ]; $res = IssueService::paginate($params); return $this->success($res); } public function cao() { $type = [1, 2, 3, 4]; $list = []; $list[] = Cao::whereIn('id', $type)->get(); $type = [5, 6, 7, 8]; $list[] = Cao::whereIn('id', $type)->get(); $type = [9,10]; $list[] = Cao::whereIn('id', $type)->get(); $list[] = [ ['field'=>'2.8回本','val'=>0], ['field'=>'3.2回本','val'=>0], ]; $type = [11,12,13]; $list[] = Cao::whereIn('id', $type)->get(); $list[] = Cao::where('id', '>=',14) ->where('id', '<=',41) ->get(); return $this->success($list); } }