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.
23 lines
701 B
23 lines
701 B
2 years ago
|
import { defHttp } from '@/utils/http/axios'
|
||
|
import { ProcessInstanceVO } from './types'
|
||
|
|
||
|
export const getMyProcessInstancePageApi = (params) => {
|
||
|
return defHttp.get({ url: '/bpm/process-instance/my-page', params })
|
||
|
}
|
||
|
|
||
|
export const createProcessInstanceApi = (data: ProcessInstanceVO) => {
|
||
|
return defHttp.post({ url: '/bpm/process-instance/create', data: data })
|
||
|
}
|
||
|
|
||
|
export const cancelProcessInstanceApi = (id: number, reason: string) => {
|
||
|
const data = {
|
||
|
id: id,
|
||
|
reason: reason
|
||
|
}
|
||
|
return defHttp.delete({ url: '/bpm/process-instance/cancel', data: data })
|
||
|
}
|
||
|
|
||
|
export const getProcessInstanceApi = (id: number) => {
|
||
|
return defHttp.get({ url: '/bpm/process-instance/get?id=' + id })
|
||
|
}
|