提交 | 用户 | 时间
|
2f0aa4
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
6badb7
|
3 |
export interface ScheduleSchemeVO { |
2f0aa4
|
4 |
id: string |
潘 |
5 |
code: string |
|
6 |
name: string |
|
7 |
triggerMethod: string |
|
8 |
triggerCondition: string |
|
9 |
scheduleObj: string |
|
10 |
scheduleType: string |
|
11 |
scheduleStrategy: string |
|
12 |
modelId: string |
|
13 |
scheduleTime: string |
|
14 |
remark: string |
|
15 |
status: number |
aed420
|
16 |
mpkprojectid: string |
2f0aa4
|
17 |
} |
潘 |
18 |
|
|
19 |
export interface ScheduleSchemePageReqVO extends PageParam { |
|
20 |
modelCode?: string |
|
21 |
modelName?: string |
|
22 |
} |
|
23 |
|
|
24 |
// 查询ScheduleScheme列表 |
|
25 |
export const getScheduleSchemePage = (params: ScheduleSchemePageReqVO) => { |
|
26 |
return request.get({ url: '/model/sche/scheme/page', params }) |
|
27 |
} |
|
28 |
|
|
29 |
// 查询ScheduleScheme详情 |
|
30 |
export const getScheduleScheme = (id: number) => { |
6badb7
|
31 |
return request.get({ url: '/model/sche/scheme/get?id=' + id}) |
2f0aa4
|
32 |
} |
潘 |
33 |
|
|
34 |
// 新增ScheduleScheme |
|
35 |
export const createScheduleScheme = (data: ScheduleSchemeVO) => { |
6badb7
|
36 |
return request.post({ url: '/model/sche/scheme/create', data }) |
2f0aa4
|
37 |
} |
潘 |
38 |
|
|
39 |
// 修改ScheduleScheme |
|
40 |
export const updateScheduleScheme = (data: ScheduleSchemeVO) => { |
|
41 |
return request.put({ url: '/model/sche/scheme/update', data }) |
|
42 |
} |
|
43 |
|
|
44 |
// 删除ScheduleScheme |
|
45 |
export const deleteScheduleScheme = (id: number) => { |
|
46 |
return request.delete({ url: '/model/sche/scheme/delete?id=' + id }) |
|
47 |
} |