dataLists(new SupervisionParticipatingUnitsContactsLists()); } /** * @notes 添加工程监理--参建单位联系人 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 13:40 */ public function add() { $params = (new SupervisionParticipatingUnitsContactsValidate())->post()->goCheck('add'); $result = SupervisionParticipatingUnitsContactsLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionParticipatingUnitsContactsLogic::getError()); } /** * @notes 编辑工程监理--参建单位联系人 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 13:40 */ public function edit() { $params = (new SupervisionParticipatingUnitsContactsValidate())->post()->goCheck('edit'); $result = SupervisionParticipatingUnitsContactsLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionParticipatingUnitsContactsLogic::getError()); } /** * @notes 删除工程监理--参建单位联系人 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 13:40 */ public function delete() { $params = (new SupervisionParticipatingUnitsContactsValidate())->post()->goCheck('delete'); SupervisionParticipatingUnitsContactsLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取工程监理--参建单位联系人详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 13:40 */ public function detail() { $params = (new SupervisionParticipatingUnitsContactsValidate())->goCheck('detail'); $result = SupervisionParticipatingUnitsContactsLogic::detail($params); return $this->data($result); } }