Files
DefectingCat 5e1f58a144 Add search API
* update prisma
* Add search API in page
* add API with fetch
* Update search with global state
2022-02-08 20:40:08 +08:00

15 lines
246 B
TypeScript

export interface SearchType {
page: number;
result: SearchResult[];
hasNext: boolean;
totalPage: number;
message: string;
}
export interface SearchResult {
id: string;
title: string;
date: string;
url: string;
desc: string;
}