createuser

package
v0.0.0-...-f85edf5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserController

func CreateUserController(res http.ResponseWriter, req *http.Request, ctx *router.Context)

Types

type CreateUserUseCase

type CreateUserUseCase struct {
	// contains filtered or unexported fields
}

func NewCreateUserUseCase

func NewCreateUserUseCase(r Repo) *CreateUserUseCase

func (*CreateUserUseCase) Execute

type Repo

type Repo interface {
	CreateUser(data *dtos.CreateUserDTO) (*dtos.UserDTO, error)
	FindByEmail(email string) (*dtos.UserDTO, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL