handler

package
v0.0.0-...-a4deb0f Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassWord

func ChangePassWord() func(*gin.Context)

ChangePassWord godoc @Summary Users can change password @Description Users can change password @Tags otp @Accept json @Produce json @Param otp path string true "OTP" @Param email body string true "Email" @Param pass_word_new body string true "PassWordNew" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/change_password/{otp} [patch]

func SendOTP

func SendOTP() func(*gin.Context)

SendOTP godoc @Summary Send OTP to email @Description Send OTP to email @Tags otp @Accept json @Produce json @Param email body string true "Email" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/send_otp [post]

func VerifiOTP

func VerifiOTP() func(*gin.Context)

VerifiOTP godoc @Summary Users can verify OTP @Description Users can verify OTP @Tags otp @Accept json @Produce json @Param otp path string true "OTP" @Param email body string true "Email" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/verify_otp/{otp} [patch]

Types

type UsersUpdateResponse

type UsersUpdateResponse struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

Directories

Path Synopsis
admin_function

Jump to

Keyboard shortcuts

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