Перенести пользователей в PostgreSQL и добавить пароли

This commit is contained in:
2026-10-06 14:54:34 +03:00
parent 46c00436a0
commit 618d3919d1
17 changed files with 482 additions and 219 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ type Repository interface {
// check and the insert must be atomic.
Create(ctx context.Context, user User) error
GetByID(ctx context.Context, id uuid.UUID) (User, error)
GetByUsername(ctx context.Context, username string) (User, error)
// ExistingIDs returns the subset of ids that belong to registered users,
// in input order, in one round trip.
// in no particular order, in one round trip.
ExistingIDs(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
}