调整form表单接口

This commit is contained in:
2024-05-20 19:07:56 +08:00
parent 9f2f0b5030
commit 5c63c5d5cc
4 changed files with 30 additions and 103 deletions

View File

@@ -1,73 +0,0 @@
import createAxios from '@/utils/request'
import { PROCESS_BOOT } from '@/utils/constantRequest'
const MAPPING_PATH = PROCESS_BOOT + '/workflow/wfForm'
/**
* 查询流程表单数据
*/
export const listWFForm = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/list',
method: 'POST',
data: data
})
}
/**
* 查询所有流程表单
*/
export const listAllWFForm = () => {
return createAxios({
url: MAPPING_PATH + '/listAll',
method: 'GET'
})
}
/**
* 根据id查询表单详细信息
*/
export const getFormById = (id: string) => {
return createAxios({
url: MAPPING_PATH + '/getFormById?id=' + id,
method: 'GET'
})
}
/**
* 新增流程表单
*/
export const addWFForm = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/add',
method: 'POST',
data: data
})
}
/**
* 更新流程表单
*/
export const updateWFForm = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/update',
method: 'POST',
data: data
})
}
/**
* 删除流程表单
*/
export const deleteWFForm = (data: any) => {
let ids = [data]
return createAxios({
url: MAPPING_PATH + '/delete',
method: 'POST',
data: ids
})
}