提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
// BPM 流程监听器 VO |
|
4 |
export interface ProcessListenerVO { |
|
5 |
id: number // 编号 |
|
6 |
name: string // 监听器名字 |
|
7 |
type: string // 监听器类型 |
|
8 |
status: number // 监听器状态 |
|
9 |
event: string // 监听事件 |
|
10 |
valueType: string // 监听器值类型 |
|
11 |
value: string // 监听器值 |
|
12 |
} |
|
13 |
|
|
14 |
// BPM 流程监听器 API |
|
15 |
export const ProcessListenerApi = { |
|
16 |
// 查询流程监听器分页 |
|
17 |
getProcessListenerPage: async (params: any) => { |
|
18 |
return await request.get({ url: `/bpm/process-listener/page`, params }) |
|
19 |
}, |
|
20 |
|
|
21 |
// 查询流程监听器详情 |
|
22 |
getProcessListener: async (id: number) => { |
|
23 |
return await request.get({ url: `/bpm/process-listener/get?id=` + id }) |
|
24 |
}, |
|
25 |
|
|
26 |
// 新增流程监听器 |
|
27 |
createProcessListener: async (data: ProcessListenerVO) => { |
|
28 |
return await request.post({ url: `/bpm/process-listener/create`, data }) |
|
29 |
}, |
|
30 |
|
|
31 |
// 修改流程监听器 |
|
32 |
updateProcessListener: async (data: ProcessListenerVO) => { |
|
33 |
return await request.put({ url: `/bpm/process-listener/update`, data }) |
|
34 |
}, |
|
35 |
|
|
36 |
// 删除流程监听器 |
|
37 |
deleteProcessListener: async (id: number) => { |
|
38 |
return await request.delete({ url: `/bpm/process-listener/delete?id=` + id }) |
|
39 |
} |
|
40 |
} |