From 434944abc3a1b3aed9c11e47de79fa90e1e7833d Mon Sep 17 00:00:00 2001 From: caoxiaozhu Date: Tue, 12 May 2026 01:28:38 +0000 Subject: [PATCH] feat(web): add ontology and orchestrator service modules - web/src/services/ontology.js: ontology service API client - web/src/services/orchestrator.js: orchestrator service API client --- web/src/services/ontology.js | 8 ++++++++ web/src/services/orchestrator.js | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 web/src/services/ontology.js create mode 100644 web/src/services/orchestrator.js diff --git a/web/src/services/ontology.js b/web/src/services/ontology.js new file mode 100644 index 0000000..784a031 --- /dev/null +++ b/web/src/services/ontology.js @@ -0,0 +1,8 @@ +import { apiRequest } from './api.js' + +export function fetchOntologyParse(payload) { + return apiRequest('/ontology/parse', { + method: 'POST', + body: JSON.stringify(payload) + }) +} diff --git a/web/src/services/orchestrator.js b/web/src/services/orchestrator.js new file mode 100644 index 0000000..72031af --- /dev/null +++ b/web/src/services/orchestrator.js @@ -0,0 +1,8 @@ +import { apiRequest } from './api.js' + +export function runOrchestrator(payload) { + return apiRequest('/orchestrator/run', { + method: 'POST', + body: JSON.stringify(payload) + }) +}