conform service design/usage patterns

This commit is contained in:
ari melody 2026-07-31 10:02:34 +01:00
parent 89a5fdc4e5
commit fd3b2a0dba
Signed by: ari
GPG key ID: CF99829C92678188
13 changed files with 65 additions and 60 deletions

View file

@ -7,11 +7,9 @@ import (
"strconv"
)
type (
AccountRepositoryMemory struct {
accounts []*model.Account
}
)
type AccountRepositoryMemory struct {
accounts []*model.Account
}
var _ AccountRepository = new(AccountRepositoryMemory)

View file

@ -8,11 +8,9 @@ import (
_ "github.com/lib/pq"
)
type (
AccountRepositoryPostgres struct {
db *sqlx.DB
}
)
type AccountRepositoryPostgres struct {
db *sqlx.DB
}
var _ AccountRepository = new(AccountRepositoryPostgres)