sms

package
v0.0.25 Latest Latest
Warning

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

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

Documentation

Overview

短信发送模块,调用阿里云的短信服务 依旧有安全问题

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, name 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"`
	Name        string `form:"name" json:"name"`
}

Jump to

Keyboard shortcuts

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