forked from kingwrcy/moments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
82 lines (77 loc) · 1.34 KB
/
types.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
export type Memo = {
id: number;
content: string;
imgs: string;
favCount: number;
commentCount: number;
userId: number;
createdAt: string;
updatedAt: string;
user: User;
music163Url?: string;
bilibiliUrl?: string;
location?: string;
externalUrl?: string;
externalTitle?: string;
externalFavicon?: string;
comments: Array<Comment>;
pinned: boolean;
ext: string;
_count: {
comments: number;
};
};
export type Comment = {
id: number;
content: string;
replyTo: string;
username: any;
email: any;
website: any;
createdAt: string;
updatedAt: string;
memoId: number;
author?: Boolean;
};
export type User = {
username: string;
nickname: string;
slogan: string;
id: number;
avatarUrl: string;
coverUrl: string;
favicon: string;
title: string;
css: string;
js: string;
beianNo: string;
};
export type DoubanBook = {
title: string;
desc: string;
image: string;
author: string;
isbn: string;
rating: string;
url: string;
pubDate: string;
id:number;
};
export type DoubanMovie = {
title: string;
desc: string;
image: string;
director: string;
rating: string;
url: string;
releaseDate: string;
actors:string;
runtime:string;
id:number
};
export type MemoExt = {
doubanBook: DoubanBook;
doubanMovie: DoubanMovie;
youtubeUrl:string;
videoUrl:string;
};