mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
code: cpp,dbal,client (2 files)
This commit is contained in:
@@ -69,6 +69,7 @@ public:
|
||||
Result<std::vector<ComponentHierarchy>> searchComponents(const std::string& query,
|
||||
const std::optional<std::string>& page_id = std::nullopt,
|
||||
int limit = 20);
|
||||
Result<std::vector<ComponentHierarchy>> getComponentChildren(const std::string& parent_id);
|
||||
|
||||
Result<Workflow> createWorkflow(const CreateWorkflowInput& input);
|
||||
Result<Workflow> getWorkflow(const std::string& id);
|
||||
|
||||
@@ -153,6 +153,10 @@ Result<std::vector<ComponentHierarchy>> Client::searchComponents(const std::stri
|
||||
return entities::component::search(getStore(), query, page_id, limit);
|
||||
}
|
||||
|
||||
Result<std::vector<ComponentHierarchy>> Client::getComponentChildren(const std::string& parent_id) {
|
||||
return entities::component::getChildren(getStore(), parent_id);
|
||||
}
|
||||
|
||||
Result<Workflow> Client::createWorkflow(const CreateWorkflowInput& input) {
|
||||
return entities::workflow::create(getStore(), input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user