feat: sort user search

This commit is contained in:
bggRGjQaUbCoE
2024-09-28 11:57:05 +08:00
parent 9e8ce5b093
commit 80f8c88d0d
4 changed files with 195 additions and 11 deletions

View File

@@ -76,6 +76,8 @@ class SearchHttp {
String? order,
int? duration,
int? tids,
int? orderSort,
int? userType,
}) async {
var reqData = {
'search_type': searchType.type,
@@ -83,9 +85,11 @@ class SearchHttp {
// 'order_sort': 0,
// 'user_type': 0,
'page': page,
if (order != null) 'order': order,
if (order != null && order.isNotEmpty) 'order': order,
if (duration != null) 'duration': duration,
if (tids != null) 'tids': tids,
if (orderSort != null) 'order_sort': orderSort,
if (userType != null) 'user_type': userType,
};
var res = await Request().get(Api.searchByType, data: reqData);
if (res.data['code'] == 0 && res.data['data']['numPages'] > 0) {