Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package common holds the identity module's handlers of the verification codes: sending email and SMS codes and pre-checking them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVerificationCodeHandler

func CheckVerificationCodeHandler(service identity.Service) app.HandlerFunc

CheckVerificationCodeHandler documents Check verification code.

@Summary Check verification code @Tags common @Accept json @Produce json @Param request body dto.CheckVerificationCodeRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.CheckVerificationCodeResponse} @Router /v1/common/check_verification_code [post]

func SendEmailCodeHandler

func SendEmailCodeHandler(service identity.Service) app.HandlerFunc

SendEmailCodeHandler documents Get verification code.

@Summary Get verification code @Tags common @Accept json @Produce json @Param request body dto.SendCodeRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.SendCodeResponse} @Router /v1/common/send_code [post]

func SendSmsCodeHandler

func SendSmsCodeHandler(service identity.Service) app.HandlerFunc

SendSmsCodeHandler documents Get sms verification code.

@Summary Get sms verification code @Tags common @Accept json @Produce json @Param request body dto.SendSmsCodeRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.SendCodeResponse} @Router /v1/common/send_sms_code [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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