dataLists(new SupervisionInspectionResultLists()); } /** * @notes 添加工程监理--巡视结果 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 09:23 */ public function add() { $params = (new SupervisionInspectionResultValidate())->post()->goCheck('add'); $result = SupervisionInspectionResultLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionInspectionResultLogic::getError()); } /** * @notes 编辑工程监理--巡视结果 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 09:23 */ public function edit() { $params = (new SupervisionInspectionResultValidate())->post()->goCheck('edit'); $result = SupervisionInspectionResultLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionInspectionResultLogic::getError()); } /** * @notes 删除工程监理--巡视结果 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 09:23 */ public function delete() { $params = (new SupervisionInspectionResultValidate())->post()->goCheck('delete'); SupervisionInspectionResultLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取工程监理--巡视结果详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 09:23 */ public function detail() { $params = (new SupervisionInspectionResultValidate())->goCheck('detail'); $result = SupervisionInspectionResultLogic::detail($params); return $this->data($result); } }