This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-11 19:08:18 +00:00
|
|
|
import AbstractService from './abstractService'
|
|
|
|
|
|
|
|
export default class AccountDeleteService extends AbstractService {
|
2022-06-23 01:20:07 +00:00
|
|
|
request(password: string) {
|
|
|
|
return this.post('/user/deletion/request', {password})
|
2021-08-11 19:08:18 +00:00
|
|
|
}
|
|
|
|
|
2022-06-23 01:20:07 +00:00
|
|
|
confirm(token: string) {
|
|
|
|
return this.post('/user/deletion/confirm', {token})
|
2021-08-11 19:08:18 +00:00
|
|
|
}
|
|
|
|
|
2022-06-23 01:20:07 +00:00
|
|
|
cancel(password: string) {
|
|
|
|
return this.post('/user/deletion/cancel', {password})
|
2021-08-11 19:08:18 +00:00
|
|
|
}
|
|
|
|
}
|