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
This commit is contained in:
caoxiaozhu
2026-05-12 01:28:38 +00:00
parent 93b1a5e746
commit 434944abc3
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { apiRequest } from './api.js'
export function fetchOntologyParse(payload) {
return apiRequest('/ontology/parse', {
method: 'POST',
body: JSON.stringify(payload)
})
}

View File

@@ -0,0 +1,8 @@
import { apiRequest } from './api.js'
export function runOrchestrator(payload) {
return apiRequest('/orchestrator/run', {
method: 'POST',
body: JSON.stringify(payload)
})
}