27 lines
775 B
Dart
27 lines
775 B
Dart
import '../../../../api/base_manager.dart';
|
|
import '../../../../api/network_api.dart';
|
|
|
|
class DeleteDatesOnLogout {
|
|
Future<ResponseData<dynamic>> deleteDates(updata) async {
|
|
final response = await NetworkApi()
|
|
.postApi(url: "https://thegsf.co/api/deletePeriodDates", data: updata);
|
|
if (response.status == ResponseStatus.SUCCESS) {
|
|
print("success $response");
|
|
}
|
|
print("failed $response");
|
|
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> deleteAccount(updata) async {
|
|
final response = await NetworkApi()
|
|
.postApi(url: "https://thegsf.co/api/delete_user", data: updata);
|
|
if (response.status == ResponseStatus.SUCCESS) {
|
|
print("success $response");
|
|
}
|
|
print("failed $response");
|
|
|
|
return response;
|
|
}
|
|
}
|