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.
22 lines
689 B
22 lines
689 B
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 }) |
|
} |
|
|
|
export const cancelProcessInstanceApi = (id: number, reason: string) => { |
|
const data = { |
|
id: id, |
|
reason: reason |
|
} |
|
return defHttp.delete({ url: '/bpm/process-instance/cancel', data }) |
|
} |
|
|
|
export const getProcessInstanceApi = (id: number) => { |
|
return defHttp.get({ url: '/bpm/process-instance/get?id=' + id }) |
|
}
|
|
|