添加自动化相关方法
This commit is contained in:
@@ -50,3 +50,13 @@ func (a *Automation) UpdateConditionLastExecuteTime(conditionId uint32, lastExec
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var automation *Automation
|
||||||
|
|
||||||
|
// 获取自动化相关RPC
|
||||||
|
func GetAutomation() *Automation {
|
||||||
|
if automation == nil {
|
||||||
|
automation = &Automation{}
|
||||||
|
}
|
||||||
|
return automation
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user