feat: Implement agent search functionality and update the home screen to dynamically display professional data.
This commit is contained in:
@@ -44,6 +44,7 @@ class AgentsRepository {
|
||||
/// Response: { success, data: { data: [...], meta: {...} } }
|
||||
Future<SearchAgentsResponse> searchAgents({
|
||||
String? agentTypeId,
|
||||
String? search,
|
||||
int page = 1,
|
||||
int limit = 10,
|
||||
String? sortBy,
|
||||
@@ -56,6 +57,7 @@ class AgentsRepository {
|
||||
};
|
||||
|
||||
if (agentTypeId != null) queryParams['agentTypeId'] = agentTypeId;
|
||||
if (search != null && search.isNotEmpty) queryParams['search'] = search;
|
||||
if (sortBy != null) queryParams['sortBy'] = sortBy;
|
||||
if (sortOrder != null) queryParams['sortOrder'] = sortOrder;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user