dataLists(new ConsultProjectLists()); } /** * @notes 添加基本信息 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 09:25 */ public function add() { $params = (new ConsultProjectValidate())->post()->goCheck('add'); $result = ConsultProjectLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ConsultProjectLogic::getError()); } /** * @notes 编辑基本信息 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 09:25 */ public function edit() { $params = (new ConsultProjectValidate())->post()->goCheck('edit'); $result = ConsultProjectLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ConsultProjectLogic::getError()); } /** * @notes 删除基本信息 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 09:25 */ public function delete() { $params = (new ConsultProjectValidate())->post()->goCheck('delete'); $result = ConsultProjectLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(ConsultProjectLogic::getError()); } /** * @notes 获取基本信息详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 09:25 */ public function detail() { $params = (new ConsultProjectValidate())->goCheck('detail'); $result = ConsultProjectLogic::detail($params); return $this->data($result); } public function datas() { return $this->data(ConsultProjectLogic::datas()); } }