forked from eatvio/eatvio_app
feat(setting): added account deleting
This commit is contained in:
@@ -203,4 +203,12 @@ class ProfileRepository {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteAccount() async {
|
||||
try {
|
||||
await profileService.deleteAccount();
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,4 +119,7 @@ abstract class ProfileService {
|
||||
Future<void> tryVerifyEmailByCode({
|
||||
@Body() required String code,
|
||||
});
|
||||
|
||||
@DELETE('/api/profile/delete_my_account')
|
||||
Future<void> deleteAccount();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user