stub for association

This commit is contained in:
Andre Medeiros 2021-07-27 10:05:50 -04:00
parent 22279185e1
commit f06f1ce550
2 changed files with 5 additions and 0 deletions

View file

@ -27,6 +27,7 @@ type AccountRepository interface {
Update(ctx context.Context, acc *Account) error Update(ctx context.Context, acc *Account) error
Create(ctx context.Context, acc *Account) error Create(ctx context.Context, acc *Account) error
Delete(ctx context.Context, id int64) error Delete(ctx context.Context, id int64) error
Associate(ctx context.Context, acc *Account, dev *Device) error
} }
// AccountUsecase represents the account's usecases // AccountUsecase represents the account's usecases

View file

@ -167,3 +167,7 @@ func (p *postgresAccountRepository) Delete(ctx context.Context, id int64) error
} }
return err return err
} }
func (p *postgresAccountRepository) Associate(ctx context.Context, acc *domain.Account, dev *domain.Device) error {
return nil
}