serverctl/pkg/application/users/repository.go

9 lines
206 B
Go
Raw Normal View History

2022-02-13 21:45:27 +01:00
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)
}