edit key word api added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user