Files
mtusi2026lab3/internal/repository/user.go
T

13 lines
349 B
Go

package repository
import (
"context"
"highload/internal/model"
)
type UserRepository interface {
Create(ctx context.Context, username, displayName string, passwordHash string) (*model.User, error)
GetUserByID(ctx context.Context, id string) (*model.User, error)
GetUserByUsername(ctx context.Context, username string) (*model.User, error)
}