v1

package
v0.0.0-...-c820190 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSmsCode

func GenerateSmsCode(width int) string

Types

type SmsSrv

type SmsSrv interface {
	//
	// SendSms
	//  @Description: 发送短信验证码
	//  @param ctx
	//  @param movile: 手机号码
	//  @param tpc: teamplate code 消息模板编号
	//  @param tp: template param 消息参数
	//  @return error
	//
	SendSms(ctx context.Context, mobile string, tpc, tp string) error
}

func NewSms

func NewSms(smsOpts *options.SmsOptions) SmsSrv

Jump to

Keyboard shortcuts

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