Files
admin-sjzx/src/api/bpm-boot/model.ts

84 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-05-09 14:18:39 +08:00
import createAxios from '@/utils/request'
import { BPM_BOOT } from '@/utils/constantRequest'
const MAPPING_PATH = BPM_BOOT + '/bpm/model'
/**
*
*/
export const listModel = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/list',
method: 'POST',
data: data
})
}
/**
*
*/
export const getModelSimpleList = () => {
return createAxios({
url: MAPPING_PATH + '/simpleList',
method: 'GET'
})
}
/**
* id查询模型详细信息
*/
export const getById = (id: string) => {
return createAxios({
url: MAPPING_PATH + '/getById?id=' + id,
method: 'GET'
})
}
/**
* id部署模型
*/
export const deployModel = (id: string) => {
return createAxios({
url: MAPPING_PATH + '/deploy?id=' + id,
method: 'POST'
})
}
/**
*
*/
export const addModel = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/add',
method: 'POST',
data: data
})
}
/**
*
*/
export const updateModel = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/update',
method: 'POST',
data: data
})
}
/**
*
*/
export const deleteModel = (data: any) => {
let ids = [data]
return createAxios({
url: MAPPING_PATH + '/delete',
method: 'POST',
data: ids
})
}