9 lines
206 B
Go
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)
|
|
}
|