serverctl/pkg/users/repository.go
2022-02-13 21:45:27 +01:00

9 lines
206 B
Go

package users
import "context"
type Repository interface {
Create(ctx context.Context, user *CreateUser) (int, error)
GetByEmail(ctx context.Context, email string, passwordHash string) (*User, error)
}