refactor(workflow): Move the variable component in the Workflow package into the common crossdomain package (#738)
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
|
||||
model "github.com/coze-dev/coze-studio/backend/api/model/crossdomain/variables"
|
||||
"github.com/coze-dev/coze-studio/backend/api/model/data/variable/kvmemory"
|
||||
|
||||
"github.com/coze-dev/coze-studio/backend/api/model/data/variable/project_memory"
|
||||
crossvariables "github.com/coze-dev/coze-studio/backend/crossdomain/contract/variables"
|
||||
"github.com/coze-dev/coze-studio/backend/domain/memory/variables/entity"
|
||||
variables "github.com/coze-dev/coze-studio/backend/domain/memory/variables/service"
|
||||
@@ -65,3 +65,16 @@ func (s *impl) DecryptSysUUIDKey(ctx context.Context, encryptSysUUIDKey string)
|
||||
ConnectorID: m.ConnectorID,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *impl) GetVariableChannelInstance(ctx context.Context, e *model.UserVariableMeta, keywords []string, varChannel *project_memory.VariableChannel) ([]*kvmemory.KVItem, error) {
|
||||
m := entity.NewUserVariableMeta(e)
|
||||
return s.DomainSVC.GetVariableChannelInstance(ctx, m, keywords, varChannel)
|
||||
}
|
||||
|
||||
func (s *impl) GetProjectVariablesMeta(ctx context.Context, projectID string, version string) (*entity.VariablesMeta, error) {
|
||||
return s.DomainSVC.GetProjectVariablesMeta(ctx, projectID, version)
|
||||
}
|
||||
|
||||
func (s *impl) GetAgentVariableMeta(ctx context.Context, agentID int64, version string) (*entity.VariablesMeta, error) {
|
||||
return s.DomainSVC.GetAgentVariableMeta(ctx, agentID, version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user