drivers

package
v0.0.0-...-6a44d15 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlDriver

type MysqlDriver struct{}

func NewMysqlDriver

func NewMysqlDriver() *MysqlDriver

func (*MysqlDriver) CreateTable

func (*MysqlDriver) CreateTable(db *gorose.Engin) (err error)

func (*MysqlDriver) GenerateSms

func (*MysqlDriver) GenerateSms(db *gorose.Engin, sms *adapter.Sms) (pkid int64, err error)

GenerateSms 生成短信验证码入库

func (*MysqlDriver) GetLatestSms

func (*MysqlDriver) GetLatestSms(db *gorose.Engin, sms *adapter.Sms) (err error)

GetLatestSms 根据条件获取最新一条发送结果

func (*MysqlDriver) UpdateSmsSendResult

func (*MysqlDriver) UpdateSmsSendResult(db *gorose.Engin, sms *adapter.Sms) (pkid int64, err error)

UpdateSmsStatus 更新短信发送结果信息

func (*MysqlDriver) VerifySms

func (*MysqlDriver) VerifySms(db *gorose.Engin, sms *adapter.Sms) (affected_rows int64, err error)

Jump to

Keyboard shortcuts

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