index.ts
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { TaskTargetEnum } from '/@/views/task/center/config';
import {
ExecuteTimeTypeEnum,
PeriodTypeEnum,
PushWayEnum,
} from '/@/views/task/center/components/CreateModal/config';
import { TaskTypeEnum } from '/@/views/task/center/config';
export interface GetTaskListParamsType {
page: number;
pageSize: number;
state?: string;
}
export interface CreateTaskRecordType {
name: string;
targetType: TaskTargetEnum;
executeTarget: {
organizationId?: string;
deviceProfileId?: string;
deviceType?: string;
cancelExecuteDevices?: string[];
data?: string[];
};
executeContent: {
pushContent: {
rpcCommand: string | Recordable;
};
pushWay: PushWayEnum;
type: TaskTypeEnum;
};
executeTime: {
cron: string;
type: ExecuteTimeTypeEnum;
periodType: PeriodTypeEnum;
period: string;
time: string;
pollUnit: string;
};
}
export interface TaskRecordType extends CreateTaskRecordType {
id: string;
createTime: string;
creator: string;
enabled: boolean;
state: number;
}