yunpian

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlatformYunPian 云片通知平台
	PlatformYunPian = "yunpian"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	APIKey string // 接口Key
}

App 应用配置

type Config

type Config struct {
	Sms App // 短信应用配置
}

Config 云片通知服务配置

type YunPian

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

YunPian 云片通知服务

func MustNewYunPian

func MustNewYunPian(c Config, opts ...notifytypes.Option) *YunPian

MustNewYunPian 新建云片通知服务

func NewYunPian

func NewYunPian(c Config, opts ...notifytypes.Option) (*YunPian, error)

NewYunPian 新建云片通知服务

func (*YunPian) Platform

func (y *YunPian) Platform() string

Platform 服务平台

func (*YunPian) SendSms

func (y *YunPian) SendSms(receiver, templateID string, params ...notifytypes.Param) error

SendSms 发送短信

Jump to

Keyboard shortcuts

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