telephone

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliyun

type Aliyun struct {
}

func NewAliyun

func NewAliyun() *Aliyun

func (*Aliyun) SendAuthCode

func (c *Aliyun) SendAuthCode(phone string, code string) error

func (*Aliyun) SendRegisterCode

func (c *Aliyun) SendRegisterCode(phone string, code string) error

func (*Aliyun) SendResetPasswordCode

func (c *Aliyun) SendResetPasswordCode(phone string, code string) error

type Telephone

type Telephone interface {
	SendRegisterCode(phone string, code string) error      // 发送注册验证码
	SendAuthCode(phone string, code string) error          // 发送身份验证码
	SendResetPasswordCode(phone string, code string) error // 发送重置密码验证码
	// contains filtered or unexported methods
}

邮箱提供这应提供的对象

func GetClient

func GetClient() Telephone

type Tencent

type Tencent struct {
}

func NewTencent

func NewTencent() *Tencent

func (*Tencent) SendAuthCode

func (c *Tencent) SendAuthCode(phone string, code string) error

func (*Tencent) SendRegisterCode

func (c *Tencent) SendRegisterCode(phone string, code string) error

func (*Tencent) SendResetPasswordCode

func (c *Tencent) SendResetPasswordCode(phone string, code string) error

Jump to

Keyboard shortcuts

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