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 +}