service

package
v0.0.0-...-5e8989d Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceGroupApp = new(ServiceGroup)

Functions

func CreateClient

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

*

  • 使用AK&SK初始化账号Client
  • @param accessKeyId
  • @param accessKeySecret
  • @return Client
  • @throws Exception

Types

type AliSmsService

type AliSmsService struct{}

func (*AliSmsService) SendAliSms

func (e *AliSmsService) SendAliSms(phones []string, templateParam string) (err error)

模板使用json字符串 {"code":"xxx"} 对应你模板里面的变量key和value

type ServiceGroup

type ServiceGroup struct {
	AliSmsService
}

Jump to

Keyboard shortcuts

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