sms

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIPOSTVerificationCode

func APIPOSTVerificationCode(c *gin.Context)

func GetVerificationCode

func GetVerificationCode(phoneNumber string) (code string, err error)

func Register

func Register()

func SendSMS

func SendSMS(phoneNumber string, sigName string, templateCode string, code string) error

func SetVerificationCode

func SetVerificationCode(phoneNumber string, code string) (err error)

SetVerificationCode 设置验证码 @since 0.0.10

Types

type APIGETVerificationCodeForm

type APIGETVerificationCodeForm struct {
	PhoneNumber string `form:"phoneNumber" json:"phoneNumber" binding:"required"`
}

Jump to

Keyboard shortcuts

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