psms

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

短信发送工具包

腾讯云短信

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sms

type Sms struct {
	TencentSms *tencentSms
}

func Instance

func Instance(conf interface{}) (s Sms, typ interface{})

Instance conf: interface{} 短信发送方式配置

type TsmsConfig

type TsmsConfig struct {
	SecretId         string
	SecretKey        string
	AppId            string   //短信应用appId
	SignName         string   //短信签名
	TemplateId       string   //短信模板ID
	TemplateParamSet []string //模板参数
	PhoneNumberSet   []string //发送手机号
	SessionContext   string   //用户的 session 内容
	ExtendCode       string   //短信码号扩展号
	SenderId         string   //国际/港澳台短信 SenderId
}

定义传参结构体

Jump to

Keyboard shortcuts

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