This commit is contained in:
2021-11-17 23:44:20 +01:00
parent 7bf8db8050
commit e05bd1c743
4 changed files with 66 additions and 3 deletions

View File

@@ -48,6 +48,10 @@ func (s *Service) CreateAccount(account Account) (*Account, error) {
return &account, err
}
func (s *Service) DeleteAccountOfUser(userId, accountId string) error {
return s.db.DeleteAccountOfAnUser(userId, accountId)
}
func NewService(database *Database) *Service {
return &Service{db: database}
}