controller

package
v0.0.0-...-d6791e1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignRoleToUsers

func AssignRoleToUsers(c echo.Context) error

func GetUserProfile

func GetUserProfile(c echo.Context) error

GetUserProfile

@Tags		User.Private
@Summary	Get user profile

@Security	AccessToken

@Produce	json
@Success	200	{object}	middleware.SuccessResponse{data=userresdto.UserGetProfileDtoStruct}
@Failure	400	{object}	middleware.ErrorResponse{}
@Failure	404	{object}	middleware.ErrorResponse{}
@Failure	500	{object}	middleware.ErrorResponse{}
@Router		/users/profile [get]

func Login

func Login(c echo.Context) error

func RefreshAccessToken

func RefreshAccessToken(c echo.Context) error

func SignUp

func SignUp(c echo.Context) error

func UpdateUserProfile

func UpdateUserProfile(c echo.Context) error

UpdateUserProfile

@Tags		User.Private
@Summary	Update user profile

@Security	AccessToken

@Accept	json
@Produce	json
@Param		data  body userreqdto.UserUpdateProfileDto true	"User update profile"
@Success	204	{object}	middleware.SuccessResponse{}
@Failure	400	{object}	middleware.ErrorResponse{}
@Failure	404	{object}	middleware.ErrorResponse{}
@Failure	500	{object}	middleware.ErrorResponse{}
@Router		/users/profile [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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