提交 | 用户 | 时间
|
d09108
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
// 查询ScheduleJob列表 |
2307f1
|
4 |
export const getScheduleJobPage = (params) => { |
73c154
|
5 |
return request.get({ url: '/shasteel/job/schedule/page', params }) |
d09108
|
6 |
} |
L |
7 |
|
|
8 |
// 查询ScheduleJob详情 |
2307f1
|
9 |
export const getScheduleJob = (id) => { |
D |
10 |
return request.get({ url: '/shasteel/job/schedule/' + id}) |
d09108
|
11 |
} |
L |
12 |
|
|
13 |
// 新增ScheduleJob |
2307f1
|
14 |
export const createScheduleJob = (data) => { |
D |
15 |
return request.post({ url: '/shasteel/job/schedule', data }) |
d09108
|
16 |
} |
L |
17 |
|
|
18 |
// 修改ScheduleJob |
2307f1
|
19 |
export const updateScheduleJob = (data) => { |
D |
20 |
return request.put({ url: '/shasteel/job/schedule', data }) |
d09108
|
21 |
} |
L |
22 |
|
|
23 |
// 删除ScheduleJob |
2307f1
|
24 |
export const deleteScheduleJob = (id) => { |
D |
25 |
return request.delete({ url: '/shasteel/job/schedule?id=' + id }) |
d09108
|
26 |
} |
L |
27 |
|
|
28 |
// 立即执行 |
2307f1
|
29 |
export const runScheduleJob = (id) => { |
73c154
|
30 |
return request.put({ url: '/shasteel/job/schedule/run?id=' + id }) |
d09108
|
31 |
} |
L |
32 |
|
|
33 |
// 暂停 |
2307f1
|
34 |
export const pauseScheduleJob = (id) => { |
73c154
|
35 |
return request.put({ url: '/shasteel/job/schedule/pause?id=' + id }) |
d09108
|
36 |
} |
L |
37 |
|
|
38 |
// 恢复 |
2307f1
|
39 |
export const resumeScheduleJob = (id) => { |
73c154
|
40 |
return request.put({ url: '/shasteel/job/schedule/resume?id=' + id }) |
d09108
|
41 |
} |