sms

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnInit

func OnInit(config map[string]interface{}, option ...Option) (err error)

func SendCaptcha

func SendCaptcha(_email string, _captcha string) error

Types

type ISMS

type ISMS interface {
	SendCaptcha(mobile string, captcha string) error
}

func NewSys

func NewSys(option ...Option) (sys ISMS, err error)

type Option

type Option func(*Options)

func KeySecret

func KeySecret(v string) Option

func SetSignName

func SetSignName(v string) Option

func Setkey

func Setkey(v string) Option

type Options

type Options struct {
	KeySecret string
	SignName  string
	// contains filtered or unexported fields
}

type SMS

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

func (*SMS) SendCaptcha

func (this *SMS) SendCaptcha(mobile string, captcha string) error

发送短信验证吗

Jump to

Keyboard shortcuts

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