api = new Push($this->app); } public function lists(){ $res = $this->api->getDeviceData(); $page = input('page/d',1); $size = input('size/d',10); $groupId = input('groupId/d',0); $m = new TemperatureDevice(); $list =$m->getList($page,$size,$this->orgId,$this->userId,$groupId); HelpHander::success($list); } public function getGroup(){ $m = new TemperatureDevice(); $page = input('page/d',1); $size = input('size/d',10); $list =$m->getGroup($this->orgId,$this->userId,$page,$size); HelpHander::success($list); } }