Files
apes-Authon-Web/src/api/n8nApi.js
T
2026-08-09 11:46:38 +08:00

17 lines
492 B
JavaScript

import request from '@/utils/request'
class n8nApi {
/**
* 调用 n8n webhook:伙伴表数据同步+填充
* @param {string} spaceId - 空间ID
* @param {string} tableId - 表格ID
*/
async huobanTableSyncAndFill(spaceId, tableId) {
const url = `/n8n/webhook/4dad745d-c71d-4668-81a3-33bf350730ff?spaceId=${encodeURIComponent(spaceId)}&tableId=${encodeURIComponent(tableId)}`
return await request.apiGet(url)
}
}
const target = new n8nApi()
export default target