sms

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : sms
  • author : jarryliu
  • date : 2016-06-14 09:52
  • description : 接口中的参数均以模板和数据形式出现
  • history :

Index

Constants

View Source
const (
	SmsHttp  = 1 // HTTP
	SmsAli   = 2 //阿里大鱼
	SmsCl253 = 3 //创蓝253
)

Variables

This section is empty.

Functions

func AppendCheckPhoneParams

func AppendCheckPhoneParams(provider int, param map[string]interface{}) map[string]interface{}

附加检查手机短信的参数

func CheckSmsApiPerm

func CheckSmsApiPerm(provider int, s *valueobject.SmsApiPerm) error

检查API接口数据是否正确

func EncodingTransform

func EncodingTransform(src []byte, enc string) ([]byte, error)

编码

func SendSms

func SendSms(provider int, appKey, appSecret, phoneNum string,
	apiUrl string, enc string, successChar string, tpl string,
	param map[string]interface{}) error

发送短信,tpl:短信内容模板

Types

This section is empty.

Jump to

Keyboard shortcuts

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