mobilecode

package
v0.0.0-...-489c00f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CodeMobileKeyPrefix = "code:mobile:"
)

Functions

func GetCodeFromRedis

func GetCodeFromRedis(rcli *redis.Client, strmobile string) (error, string)

func MobileCodeNew

func MobileCodeNew(mobile string, str6num string) error

func MobileCodeOld

func MobileCodeOld(code, mobile string)

func SaveCodeToRedis

func SaveCodeToRedis(rcli *redis.Client, mct *MobileCodeTime) error

func SendMobileCode

func SendMobileCode(rcli *redis.Client, mct *MobileCodeTime, times, timediff int64) error

Types

type MobileCodeTime

type MobileCodeTime struct {
	Times  int64  `json:"times"`
	Mobile string `json:"mobile"`
	Code   string `json:"code"`
	Time   int64  `json:"time"`
}

Jump to

Keyboard shortcuts

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