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
| import {ISearchParams} from "./ISearchParams";
|
| export const TaskTypes = ['detail', 'sold', 'search', 'bid', 'buyItNow'] as const
|
| export type TaskType = (typeof TaskTypes)[number]
|
| export interface ITask {
| /**
| * 任务 ID
| */
| id: string | number
| /**
| * 任务类型
| */
| type: TaskType
| }
|
| export interface ISearchTask extends ITask {
| type: 'search';
| /**
| * 任务关键字
| */
| word: string;
| /**
| * 任务参数
| */
| params: ISearchParams;
| }
|
|