onasty/internal/store/psql/userepo/userepo.go(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
package userepo
import (
"github.com/gofrs/uuid/v5"
"github.com/olexsmir/onasty/internal/store/psqlutil"
)
type UserStorer interface {
SignUp(inp SignUpInput) (uuid.UUID, error)
}
type UserRepo struct {
db *psqlutil.DB
}
func New(db *psqlutil.DB) UserStorer {
return &UserRepo{
db: db,
}
}
type SignUpInput struct{}
func (r *UserRepo) SignUp(_ SignUpInput) (uuid.UUID, error) {
return uuid.UUID{}, nil
}
|