feat(account): get a specific account

This commit is contained in:
2021-11-23 01:47:06 +01:00
parent e05bd1c743
commit 4035478c54
3 changed files with 91 additions and 4 deletions

View File

@@ -52,6 +52,11 @@ func (s *Service) DeleteAccountOfUser(userId, accountId string) error {
return s.db.DeleteAccountOfAnUser(userId, accountId)
}
func (s *Service) GetASpecificAccountForUser(userId, accountId string) (*Account, error) {
return s.db.GetASpecificAccountForUser(userId, accountId)
}
func NewService(database *Database) *Service {
return &Service{db: database}
}