model

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Vendor_JUMENG = "jumeng" //聚梦短信服务
	Vendor_ALI    = "ali"    //阿里短信服务
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SMSConfig

type SMSConfig struct {
	AccessKeyId     string
	AccessKeySecret string
	SignName        string
	Vendor          string `common:"供应商,默认为ali,可选:ali|jumeng"`
}

短信服务参数

type SMSCustParam

type SMSCustParam struct {
	Phone []string          `common:"手机号"`
	Param map[string]string `common:"短信参数(占位符的key与value)"`
	Code  string            `common:"短信模板Code"`
}

SMSCustParam 自定义短信参数

type SMSParam

type SMSParam struct {
	Phone string `common:"手机号"`
	Data  string `common:"短信参数(占位符的内容)"`
}

SendSMS SMSParam 内置模板

Jump to

Keyboard shortcuts

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