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