userhandler

package
v0.0.0-...-9e81241 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(userSvc userservice.Service, projectSvc projectservice.Service) Handler

func (Handler) RegisterUser

func (h Handler) RegisterUser(ctx echo.Context) error

RegisterUser godoc

@Summary		Login user
@Description	Login user
@Tags			User
@Accept			json
@Produce		json
@Param			request	body		param.RegisterRequest	true	"Register request body"
@Success		201		{object}	param.RegisterResponse
@Failure		400		{object}	httputil.HTTPError
@Failure		500		{object}	httputil.HTTPError
@Security		JWTToken
@Router			/users/register [post]

func (Handler) SetUserRoute

func (h Handler) SetUserRoute(e *echo.Echo)

func (Handler) UserLogin

func (h Handler) UserLogin(ctx echo.Context) error

UserLogin godoc

@Summary		Login user
@Description	Login user
@Tags			User
@Accept			json
@Produce		json
@Param			request	body		param.LoginRequest	true	"Login request body"
@Success		200		{object}	param.LoginResponse
@Failure		400		{object}	httputil.HTTPError
@Failure		401		{object}	httputil.HTTPError
@Failure		500		{object}	httputil.HTTPError
@Security		JWTToken
@Router			/users/login [post]

Jump to

Keyboard shortcuts

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