captcha

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCaptcha

func CheckCaptcha(data map[string]interface{}) (toMap map[string]interface{})

CheckCaptcha 获取验证码验证 @param map[string]interface{} data 待验证数据 @return toMap 返回验证通过的数据

func GetCaptcha

func GetCaptcha(data map[string]interface{}) (toMap map[string]interface{})

GetCaptcha 获取验证码验证 @param map[string]interface{} data 待验证数据 @return toMap 返回验证通过的数据

Types

type CheckCaptchaValidate

type CheckCaptchaValidate struct {
	CaptchaType string `json:"captchaType" validate:"required" label:"验证码类型"`
	Token       string `json:"token" validate:"required" label:"验证码Token"`
	PointJson   string `json:"pointJson" validate:"required" label:"验证码PointJson"`
}

CheckCaptchaValidate 检查验证码正确性结构体

type GetCaptchaValidate

type GetCaptchaValidate struct {
	CaptchaType string `json:"captchaType" validate:"required" label:"验证码类型"`
}

GetCaptchaValidate 获取验证码验证结构体

Jump to

Keyboard shortcuts

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