From 6429b34a24e6c2c9dcbe9df7e4bdc7bd707f96b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=81=92?= <2390904403@qq.com> Date: Thu, 16 Oct 2025 16:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/rpc/automation.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/rpc/automation.go b/pkg/rpc/automation.go index 9bf7721..b9eeacf 100644 --- a/pkg/rpc/automation.go +++ b/pkg/rpc/automation.go @@ -50,3 +50,13 @@ func (a *Automation) UpdateConditionLastExecuteTime(conditionId uint32, lastExec } return nil } + +var automation *Automation + +// 获取自动化相关RPC +func GetAutomation() *Automation { + if automation == nil { + automation = &Automation{} + } + return automation +}