feat(m6): add JSON template CRUD with versioning

This commit is contained in:
2026-05-25 01:36:40 +08:00
parent ae880c47b2
commit 46f28d2d97
8 changed files with 412 additions and 1 deletions
@@ -401,3 +401,20 @@ export function updateIdMapping(id, body) {
export function deleteIdMapping(id) {
return axios.delete(`/api/v1/integration/id-mappings/${id}`);
}
// —— I12-2 M6 JSON 模板 ——————————————————————
export function listJsonTemplates() {
return axios.get('/api/v1/integration/json-templates');
}
export function getJsonTemplate(id) {
return axios.get(`/api/v1/integration/json-templates/${id}`);
}
export function createJsonTemplate(body) {
return axios.post('/api/v1/integration/json-templates', body);
}
export function updateJsonTemplate(id, body) {
return axios.put(`/api/v1/integration/json-templates/${id}`, body);
}
export function deleteJsonTemplate(id) {
return axios.delete(`/api/v1/integration/json-templates/${id}`);
}