add(); HelpHander::success([],'操作成功'); } // 编辑 public function update(){ model('UserTotal')->add(); HelpHander::success([],'操作成功'); } // 详情 public function detail(){ $id = input('id/d',0); $ret = model('UserTotal')->info($id); HelpHander::success($ret); } // 列表 public function list(){ $page = input('page/d',1); $size = input('size/d',10); $name = input('name','','trim'); $phone = input('phone','','trim'); $companyId = input('companyId/d',0); $ret = model('UserTotal')->lists($page,$size,$this->orgId,$name,$phone,$companyId); HelpHander::success($ret); } // 删除 public function del(){ $id = input('id/d',0); model('UserTotal')->del($id); HelpHander::success([],'操作成功'); } }