add(); HelpHander::success([],'操作成功'); } // 详情 public function detail(){ $id = input('id/d',0); $ret = model('LeaderShip')->info($id); HelpHander::success($ret); } // 删除 public function del(){ $id = input('id/d',0); model('LeaderShip')->del($id); HelpHander::success([],'操作成功'); } //列表 public function list(){ $page = input('page/d',1); $size = input('size/d',10); $content= input('content','','trim'); $ret = model('LeaderShip')->lists($page,$size,$content,$this->userId); HelpHander::success($ret); } public function all(){ $ret = model('LeaderShip')->all(); HelpHander::success($ret); } }