mirror of
https://github.com/huqi-pr/trending-in-one.git
synced 2024-11-17 22:08:21 +08:00
62 lines
811 B
TypeScript
62 lines
811 B
TypeScript
export type ZhihuVideoItem = {
|
|
target: {
|
|
title_area: {
|
|
text: string;
|
|
};
|
|
link: {
|
|
url: string;
|
|
};
|
|
};
|
|
};
|
|
|
|
export type Question = {
|
|
title: string;
|
|
url: string;
|
|
};
|
|
|
|
export type ZhihuVideoList = {
|
|
data: ZhihuVideoItem[];
|
|
};
|
|
|
|
export type ZhihuQuestionItem = {
|
|
target: {
|
|
title: string;
|
|
id: number;
|
|
};
|
|
};
|
|
|
|
export type ZhihuQuestionList = {
|
|
data: ZhihuQuestionItem[];
|
|
};
|
|
|
|
export type SearchWord = {
|
|
query: string;
|
|
display_query: string;
|
|
url?: string;
|
|
};
|
|
|
|
export type TopSearch = {
|
|
top_search: {
|
|
words: SearchWord[];
|
|
};
|
|
};
|
|
|
|
export type Word = {
|
|
title: string;
|
|
url: string;
|
|
realurl?: string;
|
|
};
|
|
|
|
export type ToutiaoTopSearch = {
|
|
data: [
|
|
{
|
|
words: ToutiaoWord[];
|
|
},
|
|
];
|
|
};
|
|
|
|
export type ToutiaoWord = {
|
|
word: string;
|
|
url: string;
|
|
};
|