You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
import { ModelVO } from './types'
|
|
|
|
|
|
|
|
export const getModelPageApi = (params) => {
|
|
|
|
return defHttp.get({ url: '/bpm/model/page', params })
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getModelApi = (id: number) => {
|
|
|
|
return defHttp.get({ url: '/bpm/model/get?id=' + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
export const updateModelApi = (data: ModelVO) => {
|
|
|
|
return defHttp.put({ url: '/bpm/model/update', data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 任务状态修改
|
|
|
|
export const updateModelStateApi = (id: number, state: number) => {
|
|
|
|
const data = {
|
|
|
|
id: id,
|
|
|
|
state: state
|
|
|
|
}
|
|
|
|
return defHttp.put({ url: '/bpm/model/update-state', data })
|
|
|
|
}
|
|
|
|
|
|
|
|
export const createModelApi = (data: ModelVO) => {
|
|
|
|
return defHttp.post({ url: '/bpm/model/create', data })
|
|
|
|
}
|
|
|
|
|
|
|
|
export const deleteModelApi = (id: number) => {
|
|
|
|
return defHttp.delete({ url: '/bpm/model/delete?id=' + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
export const deployModelApi = (id: number) => {
|
|
|
|
return defHttp.post({ url: '/bpm/model/deploy?id=' + id })
|
|
|
|
}
|