dataLists(new ManageCompanyContactsLists()); } /** * @notes 添加项目管理--参建单位联系人 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 11:50 */ public function add() { $params = (new ManageCompanyContactsValidate())->post()->goCheck('add'); $result = ManageCompanyContactsLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ManageCompanyContactsLogic::getError()); } /** * @notes 编辑项目管理--参建单位联系人 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 11:50 */ public function edit() { $params = (new ManageCompanyContactsValidate())->post()->goCheck('edit'); $result = ManageCompanyContactsLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ManageCompanyContactsLogic::getError()); } /** * @notes 删除项目管理--参建单位联系人 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 11:50 */ public function delete() { $params = (new ManageCompanyContactsValidate())->post()->goCheck('delete'); ManageCompanyContactsLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目管理--参建单位联系人详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 11:50 */ public function detail() { $params = (new ManageCompanyContactsValidate())->goCheck('detail'); $result = ManageCompanyContactsLogic::detail($params); return $this->data($result); } }