-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
92 lines (83 loc) · 1.52 KB
/
typings.d.ts
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
declare module '*.svg';
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.webp';
declare module '*.json';
declare module '*.js';
declare interface console {
log: any;
error: any;
warn: any;
info: any;
debug: any;
trace: any;
time: any;
}
type ArticleComment = {
userName: string;
avatarUrl: string;
message: string;
dateTime: string;
location: string;
favoriteCount: number;
isFavorite: boolean;
children?: ArticleComment[];
};
type Article = {
id: number;
title: string;
desc: string;
tag: string[];
dateTime: string;
location: string;
userId: number;
userName: string;
isFollow: boolean;
avatarUrl: string;
images: string[];
favoriteCount: number;
collectionCount: number;
isFavorite: boolean;
isCollection: boolean;
comments?: ArticleComment[];
};
type ArticleSimple = {
id: number;
title: string;
userName: string;
avatarUrl: string;
favoriteCount: number;
isFavorite: boolean;
image: string;
};
type Category = {
name: string;
default: boolean;
isAdd: boolean;
};
type GoodsSimple = {
id: number;
title: string;
image: string;
price: number;
originPrice: number | undefined;
promotion: string | undefined;
};
type GoodsCategory = {
id: number;
name: string;
image: string;
};
type MessageListItem = {
id: number;
name: lastMessage;
avatarUrl: string;
lastMessage?: string;
lastMessageTime?: string;
};
type UnRead = {
unreadFavorate: number;
newFollow: number;
comment: number;
};