add flow GetId()

This commit is contained in:
aceld 2024-04-15 10:44:57 +08:00
parent 230484ce1d
commit 3cc8a70f17
2 changed files with 6 additions and 0 deletions

View File

@ -311,6 +311,10 @@ func (flow *KisFlow) GetName() string {
return flow.Name
}
func (flow *KisFlow) GetId() string {
return flow.Id
}
func (flow *KisFlow) GetThisFunction() kis.Function {
return flow.ThisFunction
}

View File

@ -53,4 +53,6 @@ type Flow interface {
GetFuncParamsAllFuncs() map[string]config.FParam
// Fork 得到Flow的一个副本(深拷贝)
Fork(ctx context.Context) Flow
// GetId 得到Flow的Id
GetId() string
}