2024-02-29 22:12:50 +08:00
|
|
|
import Api from '@/common/Api';
|
|
|
|
|
|
|
|
|
|
export const procdefApi = {
|
|
|
|
|
list: Api.newGet('/flow/procdefs'),
|
2024-05-08 21:04:25 +08:00
|
|
|
getByResource: Api.newGet('/flow/procdefs/{resourceType}/{resourceCode}'),
|
2024-02-29 22:12:50 +08:00
|
|
|
save: Api.newPost('/flow/procdefs'),
|
|
|
|
|
del: Api.newDelete('/flow/procdefs/{id}'),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const procinstApi = {
|
|
|
|
|
list: Api.newGet('/flow/procinsts'),
|
|
|
|
|
detail: Api.newGet('/flow/procinsts/{id}'),
|
|
|
|
|
cancel: Api.newPost('/flow/procinsts/{id}/cancel'),
|
|
|
|
|
tasks: Api.newGet('/flow/procinsts/tasks'),
|
|
|
|
|
completeTask: Api.newPost('/flow/procinsts/tasks/complete'),
|
|
|
|
|
backTask: Api.newPost('/flow/procinsts/tasks/back'),
|
|
|
|
|
rejectTask: Api.newPost('/flow/procinsts/tasks/reject'),
|
|
|
|
|
save: Api.newPost('/flow/procdefs'),
|
|
|
|
|
del: Api.newDelete('/flow/procdefs/{id}'),
|
|
|
|
|
};
|