yidun

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CaptchaIdIsEmpty    = errors.New("captchaId is empty")
	SecretIdIsEmpty     = errors.New("secretId is empty")
	SecretKeyIsEmpty    = errors.New("secretKey is empty")
	ValidateDataIsEmpty = errors.New("validate data is empty")
)

Functions

This section is empty.

Types

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

func New

func New(config config.YiDunConfig) (*Verifier, error)

func (*Verifier) Verify

func (n *Verifier) Verify(validate, user string) (*VerifyResult, error)

type VerifyResult

type VerifyResult struct {
	Err       int    `json:"error"`
	Msg       string `json:"msg"`
	Result    bool   `json:"result"`
	Phone     string `json:"phone"`
	ExtraData string `json:"extraData"`
}

Jump to

Keyboard shortcuts

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