obsidian-douban/src/org/wanxp/douban/data/search/searcher/AllPageSearchPageFetcher.ts
2023-12-21 10:25:28 +08:00

14 lines
484 B
TypeScript

import {AbstractSearchPageFetcher} from "./AbstractSearchPageFetcher";
import { SupportType } from "src/org/wanxp/constant/Constsant";
export class AllPageSearchPageFetcher extends AbstractSearchPageFetcher {
getUrl(keyword: string, pageNum: number, pageSize: number): string {
return `https://m.douban.com/rexxar/api/v2/search?q=${keyword}&start=${pageNum}&count=${pageSize}`;
}
support(type: SupportType): boolean {
return type == SupportType.ALL;
}
}