user_agreement and privacy_policy sign up and menu

This commit is contained in:
mohammad
2025-01-19 16:49:54 +03:00
parent 1f62cadcec
commit df0f1c6c94
12 changed files with 652 additions and 95 deletions

View File

@ -116,4 +116,24 @@ class ProfileApi {
});
return response as List<TimeZone>;
}
Future fetchUserAgreement() async {
final response = await _httpService.get(
path: ApiEndpoints.terms,
showServerMessage: true,
expectedResponseModel: (json) {
return json['data'];
});
return response;
}
Future fetchPrivacyPolicy() async {
final response = await _httpService.get(
path: ApiEndpoints.policy,
showServerMessage: true,
expectedResponseModel: (json) {
return json['data'];
});
return response;
}
}