dataLists(new ConsultAcceptLists()); } /** * @notes 添加项目咨询--验收管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:30 */ public function add() { $params = (new ConsultAcceptValidate())->post()->goCheck('add'); $result = ConsultAcceptLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ConsultAcceptLogic::getError()); } /** * @notes 编辑项目咨询--验收管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:30 */ public function edit() { $params = (new ConsultAcceptValidate())->post()->goCheck('edit'); $result = ConsultAcceptLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ConsultAcceptLogic::getError()); } /** * @notes 删除项目咨询--验收管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:30 */ public function delete() { $params = (new ConsultAcceptValidate())->post()->goCheck('delete'); ConsultAcceptLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目咨询--验收管理详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:30 */ public function detail() { $params = (new ConsultAcceptValidate())->goCheck('detail'); $result = ConsultAcceptLogic::detail($params); return $this->data($result); } }