From f06f1ce550ae2100705baa5632858d6c88dc9c45 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Tue, 27 Jul 2021 10:05:50 -0400 Subject: [PATCH] stub for association --- internal/domain/account.go | 1 + internal/repository/postgres_account.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/internal/domain/account.go b/internal/domain/account.go index 4a767da..d669249 100644 --- a/internal/domain/account.go +++ b/internal/domain/account.go @@ -27,6 +27,7 @@ type AccountRepository interface { Update(ctx context.Context, acc *Account) error Create(ctx context.Context, acc *Account) error Delete(ctx context.Context, id int64) error + Associate(ctx context.Context, acc *Account, dev *Device) error } // AccountUsecase represents the account's usecases diff --git a/internal/repository/postgres_account.go b/internal/repository/postgres_account.go index e0c648f..c763ee6 100644 --- a/internal/repository/postgres_account.go +++ b/internal/repository/postgres_account.go @@ -167,3 +167,7 @@ func (p *postgresAccountRepository) Delete(ctx context.Context, id int64) error } return err } + +func (p *postgresAccountRepository) Associate(ctx context.Context, acc *domain.Account, dev *domain.Device) error { + return nil +}