mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-03-30 01:43:30 +00:00
26 lines
733 B
TypeScript
26 lines
733 B
TypeScript
import request from '@/config/axios'
|
|
|
|
export const getWorkflowPage = async (params) => {
|
|
return await request.get({ url: '/ai/workflow/page', params })
|
|
}
|
|
|
|
export const getWorkflow = async (id) => {
|
|
return await request.get({ url: '/ai/workflow/get?id=' + id })
|
|
}
|
|
|
|
export const createWorkflow = async (data) => {
|
|
return await request.post({ url: '/ai/workflow/create', data })
|
|
}
|
|
|
|
export const updateWorkflow = async (data) => {
|
|
return await request.put({ url: '/ai/workflow/update', data })
|
|
}
|
|
|
|
export const deleteWorkflow = async (id) => {
|
|
return await request.delete({ url: '/ai/workflow/delete?id=' + id })
|
|
}
|
|
|
|
export const testWorkflow = async (data) => {
|
|
return await request.post({ url: '/ai/workflow/test', data })
|
|
}
|