Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-18 22:13:06 +08:00
parent 41245d5256
commit 30a8b4d25c
13 changed files with 38 additions and 68 deletions

View File

@@ -46,16 +46,10 @@ class SearchPanelController<R extends SearchNumData<T>, T>
@override
List<T>? getDataList(R response) {
searchResultController?.count[searchType.index] = response.numResults ?? 0;
return response.list;
}
@override
bool customHandleResponse(bool isRefresh, Success<R> response) {
searchResultController?.count[searchType.index] =
response.response.numResults ?? 0;
return false;
}
@override
Future<LoadingState<R>> customGetData() => SearchHttp.searchByType<R>(
searchType: searchType,