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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
| // @ts-ignore
| /* eslint-disable */
|
| declare namespace API {
| type CurrentUser = {
| name?: string;
| avatar?: string;
| userid?: string;
| email?: string;
| signature?: string;
| title?: string;
| group?: string;
| tags?: { key?: string; label?: string }[];
| notifyCount?: number;
| unreadCount?: number;
| country?: string;
| access?: string;
| geographic?: {
| province?: { label?: string; key?: string };
| city?: { label?: string; key?: string };
| };
| address?: string;
| phone?: string;
| };
|
| type LoginResult = {
| status?: string;
| type?: string;
| currentAuthority?: string;
| };
|
| type PageParams = {
| current?: number;
| pageSize?: number;
| };
|
| type RuleListItem = {
| key?: number;
| disabled?: boolean;
| href?: string;
| avatar?: string;
| name?: string;
| owner?: string;
| desc?: string;
| callNo?: number;
| status?: number;
| updatedAt?: string;
| createdAt?: string;
| progress?: number;
| };
|
| type RuleList = {
| data?: RuleListItem[];
| /** 列表的内容总数 */
| total?: number;
| success?: boolean;
| };
|
| type FakeCaptcha = {
| code?: number;
| status?: string;
| };
|
| type LoginParams = {
| username?: string;
| password?: string;
| autoLogin?: boolean;
| type?: string;
| };
|
| type ErrorResponse = {
| /** 业务约定的错误码 */
| errorCode: string;
| /** 业务上的错误信息 */
| errorMessage?: string;
| /** 业务上的请求是否成功 */
| success?: boolean;
| };
|
| type NoticeIconList = {
| data?: NoticeIconItem[];
| /** 列表的内容总数 */
| total?: number;
| success?: boolean;
| };
|
| type NoticeIconItemType = 'notification' | 'message' | 'event';
|
| type NoticeIconItem = {
| id?: string;
| extra?: string;
| key?: string;
| read?: boolean;
| avatar?: string;
| title?: string;
| status?: string;
| datetime?: string;
| description?: string;
| type?: NoticeIconItemType;
| };
| }
|
|