sms

package module
v0.0.0-...-cb2ecee Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 14 Imported by: 0

README

SMS

Goravel 的短信拓展包,目前支持阿里云和腾讯云。

Documentation

Index

Constants

View Source
const Binding = "sms"

Variables

Functions

func CreateClient

func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)

Types

type Aliyun

type Aliyun struct{}

func (*Aliyun) Send

func (a *Aliyun) Send(phone string, message contracts.Message, config map[string]string) error

type SMS

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

func NewSMS

func NewSMS(config config.Config) *SMS

func (*SMS) Send

func (r *SMS) Send(phone string, message contracts.Message) error

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (receiver *ServiceProvider) Boot(app foundation.Application)

func (*ServiceProvider) Register

func (receiver *ServiceProvider) Register(app foundation.Application)

type Tencent

type Tencent struct{}

func (*Tencent) Send

func (s *Tencent) Send(phone string, message contracts.Message, config map[string]string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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