edit key word api added

This commit is contained in:
amirrezaghabeli
2026-04-25 12:13:49 +03:30
parent eb75952b8e
commit 00a3180499
13 changed files with 542 additions and 69 deletions
+15
View File
@@ -1,3 +1,5 @@
import 'dart:convert';
import 'package:tm_app/data/services/api/profile_api.dart';
import 'package:tm_app/data/services/model/company_profile_response/company_profile_response.dart';
import 'package:tm_app/data/services/model/profile_response/profile_response.dart';
@@ -28,4 +30,17 @@ class ProfileService {
);
return result;
}
Future<Result<ProfileResponse>> updateProfileKeyWords({
required List<String> keyWords,
}) async {
Map<String, dynamic> data = {'keywords': keyWords};
final result = await _networkManager.makeRequest(
ProfileApi.updateProfileKeyWords,
method: 'PUT',
data: jsonEncode(data),
(json) => ProfileResponse.fromJson(json),
);
return result;
}
}