add(); HelpHander::success([],'操作成功'); } // 删除 public function del(){ $id = input('id/d',0); model('HouseDistrict')->del($id); HelpHander::success([],'操作成功'); } //列表 public function list(){ $page = input('page/d',1); $size = input('size/d',10); $title = input('title','','trim'); $type = input('type/d',1); $ret = model('HouseDistrict')->lists($page,$size,$title,$this->orgId,$type); HelpHander::success($ret); } // 全部列表 public function all(){ $type = input('type/d',1); $ret = model('HouseDistrict')->all($this->orgId,$type); HelpHander::success($ret); } public function listAndChild(){ $type = input('type/d',1); $cate = input('cate/d',2); $ret = model('HouseDistrict')->listAndChild($this->orgId,$type,$cate); HelpHander::success($ret); } }