mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
* update prisma * Add search API in page * add API with fetch * Update search with global state
15 lines
246 B
TypeScript
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;
|
|
}
|