aliyun_sms

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

* @Author: i@rysa.cn * @Date: 2021-10-13 13:38:48 * @LastEditTime: 2022-05-20 10:46:41 * @LastEditors: i@rysa.cn * @Description: * @FilePath: \go-utils\sms\aliyun_sms\aliyun.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunSms

type AliyunSms struct {
	// contains filtered or unexported fields
}

func NewAliyunSms

func NewAliyunSms(cfg *Config) *AliyunSms

func (*AliyunSms) SendSms

func (sms *AliyunSms) SendSms(data SmsContent) map[string]interface{}

type Config

type Config struct {
	RegionId        string
	AccessKey       string
	AccessKeySecret string
	SignName        string
}

type SmsContent

type SmsContent struct {
	Phone        string
	TemplateCode string            // 短信模板
	Params       map[string]string //短信变量
}

Jump to

Keyboard shortcuts

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