feat: search

This commit is contained in:
opbnq-q
2025-03-15 19:01:28 +07:00
parent 9a7c5ca1fe
commit 11b96dc03e
6 changed files with 44 additions and 3 deletions

View File

@@ -53,6 +53,15 @@ export function GetById(id: number): Promise<$models.Post | null> & { cancel():
return $typingPromise;
}
export function SearchByAllTextFields(phrase: string): Promise<($models.Post | null)[]> & { cancel(): void } {
let $resultPromise = $Call.ByID(591521802, phrase) as any;
let $typingPromise = $resultPromise.then(($result: any) => {
return $$createType2($result);
}) as any;
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
return $typingPromise;
}
export function SortedByOrder(fieldsSortOrder: utils$0.SortField[]): Promise<($models.Post | null)[]> & { cancel(): void } {
let $resultPromise = $Call.ByID(471862744, fieldsSortOrder) as any;
let $typingPromise = $resultPromise.then(($result: any) => {