Add Profile screen with name, title, company, phone, signature settings
This commit is contained in:
@@ -187,4 +187,15 @@ class ApiClient {
|
||||
Future<void> syncClientEvents(String clientId) async {
|
||||
await _dio.post('/api/events/sync/$clientId');
|
||||
}
|
||||
|
||||
// Profile
|
||||
Future<Map<String, dynamic>> getProfile() async {
|
||||
final response = await _dio.get('/api/profile');
|
||||
return response.data;
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> updateProfile(Map<String, dynamic> data) async {
|
||||
final response = await _dio.put('/api/profile', data: data);
|
||||
return response.data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user