sms

package
v0.0.0-...-00b26e8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidJson       = errors.New("invalid json")
	AppkeyIsNull      = errors.New("AppKey为空")
	AppkeyIsIllegal   = errors.New("AppKey无效")
	PhoneOrCodeIsNull = errors.New("国家代码或手机号码为空")
	PhoneIsIllegal    = errors.New("手机号码格式错误")
	CodeIsNull        = errors.New("请求校验的验证码为空")
	IsFrequentChecks  = errors.New("请求校验验证码频繁(5分钟内同一个号码最多只能校验三次)")
	CodeIsError       = errors.New("验证码错误")
	ConfigIsError     = errors.New("没有打开服务端验证开关")
)

Functions

func VerifySMS

func VerifySMS(phone string, code string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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