提交 | 用户 | 时间
|
d09108
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface ScheduleJobVO { |
|
4 |
id: number |
|
5 |
beanName: string |
|
6 |
params: string |
|
7 |
cronExpression: string |
|
8 |
status: number |
|
9 |
remark: string |
|
10 |
} |
|
11 |
|
|
12 |
export interface ScheduleJobPageReqVO extends PageParam { |
|
13 |
beanName?: string |
|
14 |
} |
|
15 |
|
|
16 |
// 查询ScheduleJob列表 |
|
17 |
export const getScheduleJobPage = (params: ScheduleJobPageReqVO) => { |
73c154
|
18 |
return request.get({ url: '/shasteel/job/schedule/page', params }) |
d09108
|
19 |
} |
L |
20 |
|
|
21 |
// 查询ScheduleJob详情 |
|
22 |
export const getScheduleJob = (id: number) => { |
73c154
|
23 |
return request.get({ url: '/shasteel/job/schedule/info?id=' + id}) |
d09108
|
24 |
} |
L |
25 |
|
|
26 |
// 新增ScheduleJob |
|
27 |
export const createScheduleJob = (data: ScheduleJobVO) => { |
73c154
|
28 |
return request.post({ url: '/shasteel/job/schedule/create', data }) |
d09108
|
29 |
} |
L |
30 |
|
|
31 |
// 修改ScheduleJob |
|
32 |
export const updateScheduleJob = (data: ScheduleJobVO) => { |
73c154
|
33 |
return request.put({ url: '/shasteel/job/schedule/update', data }) |
d09108
|
34 |
} |
L |
35 |
|
|
36 |
// 删除ScheduleJob |
|
37 |
export const deleteScheduleJob = (id: number) => { |
73c154
|
38 |
return request.delete({ url: '/shasteel/job/schedule/delete?id=' + id }) |
d09108
|
39 |
} |
L |
40 |
|
|
41 |
// 立即执行 |
|
42 |
export const runScheduleJob = (id: number) => { |
73c154
|
43 |
return request.put({ url: '/shasteel/job/schedule/run?id=' + id }) |
d09108
|
44 |
} |
L |
45 |
|
|
46 |
// 暂停 |
|
47 |
export const pauseScheduleJob = (id: number) => { |
73c154
|
48 |
return request.put({ url: '/shasteel/job/schedule/pause?id=' + id }) |
d09108
|
49 |
} |
L |
50 |
|
|
51 |
// 恢复 |
|
52 |
export const resumeScheduleJob = (id: number) => { |
73c154
|
53 |
return request.put({ url: '/shasteel/job/schedule/resume?id=' + id }) |
d09108
|
54 |
} |