| |
---|
| | public void deleteAccount(@PathParam("account_id") String accountId, |
---|
| | @QueryParam("token") String token, |
---|
| | @QueryParam("password")String password) { |
---|
| | if(accountManager.checkToken(accountId, token)) { |
---|
| | accountManager.deleteAccount(accountId, token, password); |
---|
| | bookManager.deleteAllBooks(accountId); |
---|
| | todoManager.deleteAllTodosByAccountId(accountId); |
---|
| | scheduleManager.deleteSchedules(accountId); |
---|
| | favoriteManager.removeFavoriteById(accountId); |
---|
| | accountManager.deleteAccount(accountId, token, password); |
---|
| | return; |
---|
| | } |
---|
| | //404 |
---|
| | if (!accountManager.getAccountsID().contains(accountId)){ //account_idが存在しない時 |
---|
| |
---|
| | |
No description provided.
アカウント削除するコードを一番最後にずらしました.
1895c40
intomaster
fromAccountRest
on 6 Jun