dataLists(new ConsultDemandLists()); } /** * @notes 添加项目咨询--需求研究及管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 14:36 */ public function add() { $params = (new ConsultDemandValidate())->post()->goCheck('add'); $result = ConsultDemandLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ConsultDemandLogic::getError()); } /** * @notes 编辑项目咨询--需求研究及管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 14:36 */ public function edit() { $params = (new ConsultDemandValidate())->post()->goCheck('edit'); $result = ConsultDemandLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ConsultDemandLogic::getError()); } /** * @notes 删除项目咨询--需求研究及管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 14:36 */ public function delete() { $params = (new ConsultDemandValidate())->post()->goCheck('delete'); ConsultDemandLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目咨询--需求研究及管理详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 14:36 */ public function detail() { $params = (new ConsultDemandValidate())->goCheck('detail'); $result = ConsultDemandLogic::detail($params); return $this->data($result); } }