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.