import createAxios from '@/utils/request'

import { BPM_BOOT } from '@/utils/constantRequest'

const MAPPING_PATH = BPM_BOOT + '/bpm/processInstance'

/**
 * 通过任务
 */
export const approveTask = (data: any) => {
    return createAxios({
        url: MAPPING_PATH + '/approve',
        method: 'POST',
        data: data
    })
}



/**
 * 获得指定流程实例
 */
export const getProcessInstanceById = (id: string) => {
    return createAxios({
        url: MAPPING_PATH + '/get?id='+id,
        method: 'GET'
    })
}
