dataLists(new ConsultProjectEvolveLists()); } /** * @notes 添加项目咨询--项目组工作开展情况 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 10:27 */ public function add() { $params = (new ConsultProjectEvolveValidate())->post()->goCheck('add'); $result = ConsultProjectEvolveLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ConsultProjectEvolveLogic::getError()); } /** * @notes 编辑项目咨询--项目组工作开展情况 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 10:27 */ public function edit() { $params = (new ConsultProjectEvolveValidate())->post()->goCheck('edit'); $result = ConsultProjectEvolveLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ConsultProjectEvolveLogic::getError()); } /** * @notes 删除项目咨询--项目组工作开展情况 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 10:27 */ public function delete() { $params = (new ConsultProjectEvolveValidate())->post()->goCheck('delete'); ConsultProjectEvolveLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目咨询--项目组工作开展情况详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 10:27 */ public function detail() { $params = (new ConsultProjectEvolveValidate())->goCheck('detail'); $result = ConsultProjectEvolveLogic::detail($params); return $this->data($result); } }