mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
stub for association
This commit is contained in:
parent
22279185e1
commit
f06f1ce550
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue