alibaba

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSmsCode

func GenerateSmsCode(length int) string

GenerateSmsCode 生成验证码;length代表验证码的长度

func GetSmsSendDetail

func GetSmsSendDetail(mobile string, bizId string, pageIndex int) ([]dysmsapi.SmsSendDetailDTO, error)

GetSmsSendDetail 获取短信发送明细

Types

type BaseSmsData

type BaseSmsData struct {
	SignName     string
	TemplateCode string
	Content      interface{}
}

func NewSmsData

func NewSmsData(signName, templateCode string, content interface{}) *BaseSmsData

NewSmsData 创建sms数据

type SmsResponseData

type SmsResponseData struct {
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
	Code      string `json:"code"`
	BizId     string `json:"bizId"`
}

func SmsSend

func SmsSend(mobile string, smsData *BaseSmsData, outId ...string) (*SmsResponseData, error)

SmsSend 发送短信

type VCodeSmsContent

type VCodeSmsContent struct {
	Product string `json:"product"`
	Code    string `json:"code"`
}

VCodeSmsContent 注册验证短信参数体

func NewVCodeSmsContent

func NewVCodeSmsContent(product, code string) *VCodeSmsContent

NewVCodeSmsContent 创建注册验证短信

Jump to

Keyboard shortcuts

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