dataLists(new SupervisionWorkContactLists()); } /** * @notes 添加工程监理--监理工作联系单 * @return \think\response\Json * @author likeadmin * @date 2024/03/01 11:01 */ public function add() { $params = (new SupervisionWorkContactValidate())->post()->goCheck('add'); $result = SupervisionWorkContactLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionWorkContactLogic::getError()); } /** * @notes 编辑工程监理--监理工作联系单 * @return \think\response\Json * @author likeadmin * @date 2024/03/01 11:01 */ public function edit() { $params = (new SupervisionWorkContactValidate())->post()->goCheck('edit'); $result = SupervisionWorkContactLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionWorkContactLogic::getError()); } /** * @notes 删除工程监理--监理工作联系单 * @return \think\response\Json * @author likeadmin * @date 2024/03/01 11:01 */ public function delete() { $params = (new SupervisionWorkContactValidate())->post()->goCheck('delete'); $result = SupervisionWorkContactLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(SupervisionWorkContactLogic::getError()); } /** * @notes 获取工程监理--监理工作联系单详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/01 11:01 */ public function detail() { $params = (new SupervisionWorkContactValidate())->goCheck('detail'); $result = SupervisionWorkContactLogic::detail($params); return $this->data($result); } }