user_agreement_dialog

This commit is contained in:
mohammad
2025-01-22 15:44:46 +03:00
parent 59eafc99a5
commit 513175ed1e
9 changed files with 331 additions and 7 deletions

View File

@ -12,4 +12,33 @@ class HomeApi {
});
return response;
}
Future fetchTerms() async {
final response = await HTTPService().get(
path: ApiEndpoints.terms,
showServerMessage: true,
expectedResponseModel: (json) {
return json['data'];
});
return response;
}
Future fetchPolicy() async {
final response = await HTTPService().get(
path: ApiEndpoints.policy,
showServerMessage: true,
expectedResponseModel: (json) {
return json['data'];
});
return response;
}
Future confirmUserAgreements(uuid) async {
final response = await HTTPService().patch(
path: ApiEndpoints.userAgreements.replaceAll('{userUuid}', uuid!),
expectedResponseModel: (json) {
return json['data'];
});
return response;
}
}